Commit Graph

5373 Commits

Author SHA1 Message Date
wtchang%redhat.com
7ee4fbcd30 Bugzilla bug 302670: backed out the use of system zlib because some Linux
distributions are using zlib 1.1.4, which causes our signtool tests to
fail intermittently.  Don't know why.


git-svn-id: svn://10.0.0.236/trunk@178324 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-20 01:05:44 +00:00
bienvenu%nventure.com
9d24e2d17c add optional support for mit kerberos for windows, patches by cneberg@gmail.com, r=darin, sr=bienvenu 280792
git-svn-id: svn://10.0.0.236/trunk@178239 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 14:25:22 +00:00
julien.pierre.bugs%sun.com
51daf2d40e Fix AIX build problem
git-svn-id: svn://10.0.0.236/trunk@178211 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-18 23:37:31 +00:00
wtchang%redhat.com
2e25f55020 Bugzilla Bug 266123: support 64-bit PowerPC builds for Linux distributions
(such as Red Hat and Fedora) whose GCC generates 32-bit code by default.
r=cls.


git-svn-id: svn://10.0.0.236/trunk@178176 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-18 17:48:26 +00:00
nelsonb%netscape.com
dfc02f0eb0 Remove fortezza header files from package. Bug 239960. patch by
wtchang@redhat.com, r=nelson@bolyard.com Modified Files: prototype


git-svn-id: svn://10.0.0.236/trunk@178007 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-18 03:42:00 +00:00
cbiesinger%web.de
c35be2c642 bug 277587 nsSecureBrowserUIImpl's nsUIContext interface requestor doesn't give
access to the dom window
patch by Christian Persch <chpe@gnome.org> r=jgmyers sr=roc a=asa


git-svn-id: svn://10.0.0.236/trunk@177944 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 13:39:30 +00:00
julien.pierre.bugs%sun.com
dc079f7645 Fix for bug 217024. add a function for comparing cert validity periods. r=wtchang
git-svn-id: svn://10.0.0.236/trunk@177925 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 02:04:12 +00:00
sandeep.konchady%sun.com
60860ee691 Bug Id: 304195
Added try/catch block around the method calls within toString().  Calls
such as getInetAddress(), getPort() etc does not check if the socket is
closed, and when applications use toString() on a closed socket, there
is an uncaught exception.


git-svn-id: svn://10.0.0.236/trunk@177919 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 23:44:45 +00:00
saul.edwards%sun.com
78b11417d2 Bug 303507: Add comba for MPI's multiply and square routines.
This code is currently for AMD 64 on both Linux and Solaris only.


git-svn-id: svn://10.0.0.236/trunk@177870 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 19:25:48 +00:00
nelsonb%netscape.com
00749853c3 Remove fortezza code from libSSL and from the SSL test programs.
Stop building fortezza's special software token, and fortezza specific
test programs.   Bug 239960. r=rrelyea.
Modified Files:
    cmd/manifest.mn cmd/platlibs.mk cmd/SSLsample/server.c
    cmd/SSLsample/sslsample.c cmd/modutil/modutil.c
    cmd/selfserv/selfserv.c cmd/sslstrength/sslstrength.c
    cmd/strsclnt/strsclnt.c cmd/tstclnt/tstclnt.c
    cmd/vfyserv/vfyserv.c cmd/vfyserv/vfyutil.c lib/manifest.mn
    lib/ssl/nsskea.c lib/ssl/preenc.h lib/ssl/prelib.c
    lib/ssl/ssl.h lib/ssl/ssl3con.c lib/ssl/ssl3prot.h
    lib/ssl/sslauth.c lib/ssl/sslcon.c lib/ssl/sslenum.c
    lib/ssl/sslimpl.h lib/ssl/sslinfo.c lib/ssl/sslproto.h
    lib/ssl/sslsecur.c lib/ssl/sslsnce.c lib/ssl/sslsock.c
    lib/ssl/sslt.h


git-svn-id: svn://10.0.0.236/trunk@177810 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 03:42:26 +00:00
wtchang%redhat.com
3f80423beb Bugzilla bug 296410: checked in a better fix than the previous checkin.
Also removed the unused, unexported function SEC_VerifyFile. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@177809 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 01:57:51 +00:00
wtchang%redhat.com
86755463ec Bugzilla bug 296410: removed unused, unexported function SEC_SignFile.
r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@177807 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 01:52:17 +00:00
wtchang%redhat.com
6debfca8ea Bugzilla Bug 302670: enable NSS to use system zlib and do that on Linux.
r=nelsonb.
Modified Files:
	coreconf/Linux.mk nss/cmd/Makefile nss/cmd/manifest.mn
	nss/cmd/platlibs.mk


git-svn-id: svn://10.0.0.236/trunk@177801 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 01:08:59 +00:00
wtchang%redhat.com
3ac67092d5 Bugzilla Bug 302212: enable Mac OS X x86 builds to target SDKs. The patch
is contributed by Mark Mentovai <mark@moxienet.com>. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@177789 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 22:44:22 +00:00
wtchang%redhat.com
d5fb72b2db Bugzilla Bug 298612: make sure that the int argument that we pass to the
isspace, etc. macros is EOF or between 0 and 255. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@177786 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 22:06:47 +00:00
wtchang%redhat.com
89d789010f Bugzilla Bug 298957: removed a comment. The code already does what the
comment asked for. r=relyea.


git-svn-id: svn://10.0.0.236/trunk@177783 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 21:34:42 +00:00
relyea%netscape.com
493a0a3758 Bug 225034 Certificate Manager Crashes Mozilla [@ nsCertTree::CmpByCrit]
sr=brendan r=wtc a=dbaron

The issue is the use of the PL_DHash* functions. It's possible that a given call
to PL_DHashOperate which adds a new entry may cause the hash table to expand,
and all the existing entries to be reallocated. PL_DHash does this by allocating
new memory, then copying the entries.

getCacheEntry() returns one of these hash entries. CmpBy() makes two consecutive
calls to getCacheEntry, then uses the returned entries for it's comparisons. If
the second entry call causes a new entry to be added to the table, and causes
the hash table to expand, the pointer to the first entry we retrieved will point
to freed memory.

The fix is to make the usable entry a pointer in the hashtable entry, and return
that pointer. When the hashtable rebuilds it's entries, the pointer will be
copied to the new entry and not be disturbed.


git-svn-id: svn://10.0.0.236/trunk@177782 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 21:23:51 +00:00
wtchang%redhat.com
4b51894d24 Bugzilla Bug 289530: fixed signed/unsigned comparison compiler warnings.
Fixed compilation errors of new ECC code added in the previous checkin.
r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@177781 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 21:23:39 +00:00
relyea%netscape.com
303cb46565 Remove ^M from the tree version of mpcpucache.c
git-svn-id: svn://10.0.0.236/trunk@177771 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 19:00:17 +00:00
saul.edwards%sun.com
cd05f5848f Bug 285932: Faster SHA1 implementation for AMD64: sha-fast-amd64-sun.s is
currently only for Solaris AMD 64 when using Sun studio compilers.


git-svn-id: svn://10.0.0.236/trunk@177756 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 16:55:22 +00:00
wtchang%redhat.com
986edec7a7 Bugzilla bug 302286: fixed the bug that NSS misinterpreted the
CKA_PRIME_BITS attribute for DSA's p parameter. r=relyea.
Modified files: pk11wrap/pk11pqg.c softoken/pkcs11c.c


git-svn-id: svn://10.0.0.236/trunk@177679 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-13 00:09:26 +00:00
wtchang%redhat.com
64908f732d Bugzilla Bug 302286: PQG_PBITS_TO_INDEX should reject p bits that are
less than 512 or greater than 1024. r=relyea.


git-svn-id: svn://10.0.0.236/trunk@177678 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-13 00:07:18 +00:00
wtchang%redhat.com
05f422c706 Bugzilla Bug 296410: enlarge the buffer size for message digest so that
we can generate and verify signatures that use SHA-512. r=relyea
Modified files: secsign.c secvfy.c


git-svn-id: svn://10.0.0.236/trunk@177676 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:50:19 +00:00
wtchang%redhat.com
dac7b8b673 Bugzilla bug 240554: Alice's cert doesn't need to be added to Bob's db.
r=relyea.
Modified files: cert.sh eccert.sh


git-svn-id: svn://10.0.0.236/trunk@177674 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:27:44 +00:00
wtchang%redhat.com
1dc35f6144 Bugzilla bug 240554: we should pass the signature algorithm, not the
public key's algorithm, to VFY_VerifyData and VFY_VerifyDigest. Only
fixed this in cmssiginfo.c.  In p7decode.c I just added comments saying
they should be fixed. r=relyea.
Modified files: lib/smime/cmssiginfo.c lib/pkcs7/p7decode.c


git-svn-id: svn://10.0.0.236/trunk@177673 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:26:38 +00:00
wtchang%redhat.com
d61c4fc986 Bugzilla bug 240554: set (better) error codes and removed an unreachable
break statement. r=relyea.


git-svn-id: svn://10.0.0.236/trunk@177672 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:24:22 +00:00
wtchang%redhat.com
54e547b4f0 Bugzilla bug 240554: fixed signed/unsigned comparison compiler warning.
r=relyea.


git-svn-id: svn://10.0.0.236/trunk@177671 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:22:28 +00:00
wtchang%redhat.com
f9e317685b Bugzilla bug 292239: have the softoken report Cryptoki version 2.20.
r=relyea.


git-svn-id: svn://10.0.0.236/trunk@177670 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:14:22 +00:00
wtchang%redhat.com
2037865faa Bugzilla bug 292239: added a change missed in the previous checkin.
r=relyea.


git-svn-id: svn://10.0.0.236/trunk@177668 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:12:18 +00:00
relyea%netscape.com
c20fe9e78e Correct mistyped version of wtc patch.
git-svn-id: svn://10.0.0.236/trunk@177661 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 22:19:19 +00:00
relyea%netscape.com
5895a8be4e Bug 292239 r wtc & julien
Merge PKCS #11 v2.20 header files


git-svn-id: svn://10.0.0.236/trunk@177649 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 18:58:47 +00:00
sandeep.konchady%sun.com
06b9934756 As per Wan-Teh's suggestion, the comments are modified to look as shown below.
#/********************************************************************/
#/* The VERSION Strings should be updated in the following           */
#/* files everytime a new release of JSS is generated:               */
#/*                                                                  */
#/* org/mozilla/jss/CryptoManager.java                               */
#/* org/mozilla/jss/CryptoManager.c                                  */
#/* org/mozilla/jss/util/jssver.h                                    */
#/* lib/manifest.mn                                                  */
#/*                                                                  */
#/********************************************************************/


git-svn-id: svn://10.0.0.236/trunk@177648 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 18:39:14 +00:00
relyea%netscape.com
eab20b2728 Bug 303010 Certificate upgrade can drop S/MIME certificates
r=wtc.

Delay loading the S/MIME records on upgrade until the cert is loaded


git-svn-id: svn://10.0.0.236/trunk@177646 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 18:01:26 +00:00
jst%mozilla.jstenback.com
a9f668bc25 Followup changes to bzabarsky's review for bug 296639. Reviews pending, a=drivers@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@177635 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 04:11:00 +00:00
wtchang%redhat.com
fedd4db7ed Bugzilla Bug 257693: actually implemented EC_ValidatePublicKey and added a
test case.  The patch is contributed by Douglas Stebila
<douglas@stebila.ca>.  r=wtc.
Modified Files:
	ec.c ecl/ec2.h ecl/ec2_aff.c ecl/ecl-priv.h ecl/ecl.c
	ecl/ecl.h ecl/ecp.h ecl/ecp_aff.c ecl/tests/ec2_test.c
	ecl/tests/ecp_test.c


git-svn-id: svn://10.0.0.236/trunk@177614 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 00:59:19 +00:00
wtchang%redhat.com
c60652569b Bugzilla Bug 298514: added a missing break statement and removed an unused
variable. r=jpierre.


git-svn-id: svn://10.0.0.236/trunk@177612 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 00:44:35 +00:00
wtchang%redhat.com
0e71db2146 Bugzilla Bug 240554: added ECDSA support in S/MIME. The patch is
contributed by Vipul Gupta <vipul.gupta@sun.com>. r=wtc.
Modified Files:
	cryptohi/secsign.c pkcs7/config.mk pkcs7/p7decode.c
	pkcs7/p7encode.c smime/cmssiginfo.c smime/cmsutil.c
	smime/config.mk


git-svn-id: svn://10.0.0.236/trunk@177606 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 23:11:40 +00:00
wtchang%redhat.com
549e4b84c2 Bugzilla Bug 240554: added S/MIME tests for ECDSA. The patch is
contributed by Vipul Gupta <vipul.gupta@sun.com>. r=wtc.
Modified files: fixtests.sh cert/eccert.sh
Added file: smime/ecsmime.sh


git-svn-id: svn://10.0.0.236/trunk@177605 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 22:50:12 +00:00
sandeep.konchady%sun.com
a2cc25e4c2 Older release of JSS had an issue with gradually slowing socket read time when
transfering large files (> 10MB).  In order to test this in current and future
release, there needs to be a test client that can read a file and transfer it to
a server (remote or local) via JSS socket.  The server should report the number
of bytes read and the time it took to read these bytes.  There should not no
degradation in read time if there is no leak of any sort.

This is not part of all.pl, but is a client/server that uses JSS to transfer
files securely.  The main purpose of this test would be to test the performance
of large file transfer using JSS.

NOTE: If bufferedStream.mark(Integer.MAX_VALUE); method is invoked then fill
method of BufferedInputStream class copies lot of data using System.arraycopy
(which in-turn use memcpy). This causes very high CPU usage.  This is one of
the reasons secure large file transfer can become slow over time.


git-svn-id: svn://10.0.0.236/trunk@177558 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 18:28:59 +00:00
nelsonb%netscape.com
fddd184a59 A faster c implementation of SHA1 for most platforms. Bug 285932.
r=wtchang     Modified Files: prng_fips1861.c sha_fast.c sha_fast.h


git-svn-id: svn://10.0.0.236/trunk@177533 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 01:01:08 +00:00
wtchang%redhat.com
42773a09de Bugzilla Bug 303116: fixed an off-by-one error in the size of the NAF
buffer. We access this buffer using indices from 0 to orderBitSize.
r=douglas.stebila.


git-svn-id: svn://10.0.0.236/trunk@177513 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-10 20:35:07 +00:00
wtchang%redhat.com
c03590785f Bugzilla Bug 303116: fixed an off-by-one error when duplicating a string.
r=douglas.stebila.


git-svn-id: svn://10.0.0.236/trunk@177509 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-10 18:49:29 +00:00
wtchang%redhat.com
c4473d4415 Bugzilla Bug 303116: this file doesn't need to include <strings.h>, which
doesn't exist on Windows. r=relyea.
Bugzilla Bug 303130: fixed memory leak of mp_int in ECPoints_mul.
r=douglas.stebila.


git-svn-id: svn://10.0.0.236/trunk@177507 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-10 18:46:29 +00:00
wtchang%redhat.com
c1271d2587 Bugzilla Bug 266123: added ppc64 support. The patch is contributed by
Markus Rothe <markus@unixforces.net>. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@177448 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 22:31:24 +00:00
wtchang%redhat.com
415fe5cce5 Bugzilla bug 303986: do not assume the line ending is '\n'; it may be the
two character sequence '\r''\n'.  Make sure a character is a digit before
using it as a digit. r=jpierre.


git-svn-id: svn://10.0.0.236/trunk@177446 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 22:19:09 +00:00
nelsonb%netscape.com
dc2b778129 Address review comments. Add test after PORT_Assert. Bug 303334.
r=rrelyea,sr=wtchang
Modified Files: rijndael.c


git-svn-id: svn://10.0.0.236/trunk@177406 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 03:09:38 +00:00
nelsonb%netscape.com
23c78ce0ef Make changes from review feedback. Bug 303316. r=wtchang.
Modified Files: freebl/alghmac.h freebl/blapi.h freebl/ldvector.c
freebl/loader.c freebl/loader.h freebl/rawhash.c
freebl/tlsprfalg.c softoken/lowpbe.c softoken/pkcs11c.c


git-svn-id: svn://10.0.0.236/trunk@177405 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-09 02:54:54 +00:00
cbiesinger%web.de
65d00ec4e1 297057 fix case of doOK()
patch by Frank Wein <bugzilla@mcsmurf.de> r=kaie sr=neil a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@177274 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 21:34:04 +00:00
nelsonb%netscape.com
48e3abcec3 Add a new assembly language source file with multiplication code for
Sparc v8 (not V8plus) CPUs.  This works around a performance regression
by restoring the former code.  Bug 303338. r=wtchang.
Modified Files: Makefile
Added Files:    mpi/mpv_sparcv8x.s


git-svn-id: svn://10.0.0.236/trunk@177266 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 11:08:41 +00:00
nelsonb%netscape.com
0a30d49c9a Add a comment clarifying that this source file is for sparc v8plus CPUs.
Upgrade license to tri-license.  Fix a bunch of whitespace problems,
WAY too much indentation.  Related to bug 303338. r=wtchang.
Modified Files: mpi/mpv_sparcv8.s


git-svn-id: svn://10.0.0.236/trunk@177265 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-06 11:06:55 +00:00