Commit Graph

4634 Commits

Author SHA1 Message Date
wchang0222%aol.com
fe28dc220a Reverted to NSPR 4.3 until Sun has NSPR 4.4.1 binary distributions.
git-svn-id: svn://10.0.0.236/trunk@149815 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-28 05:41:42 +00:00
nelsonb%netscape.com
d3315879ce Detect invalid input buffer lengths, and return error instead of UMR>
Bugscape bug 54021.  r=wchang0222


git-svn-id: svn://10.0.0.236/trunk@149808 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-27 05:08:20 +00:00
nelsonb%netscape.com
1b76051a28 Fix leak in CERT_FindSubjectKeyIDExtension, and use the Quick DER
decoder.  Bugscape bug 54021.  r=jpierre


git-svn-id: svn://10.0.0.236/trunk@149807 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-27 05:06:20 +00:00
wchang0222%aol.com
713064426f Upgraded to NSPR 4.4.1.
git-svn-id: svn://10.0.0.236/trunk@149794 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-27 01:43:15 +00:00
nelsonb%netscape.com
61ec12da25 Clean up some arithmetic used for UCS4. Detect when UCS2 and UCS4
buffers have invalid lengths.  Bugscape bug 54021. r=whang0222, relyea


git-svn-id: svn://10.0.0.236/trunk@149790 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-27 01:08:59 +00:00
wchang0222%aol.com
fe724137e2 Bugzilla bug 226861: removed NSS_CMSSignedData_GetDigestByAlgTag, which is
a duplicate of NSS_CMSSignedData_GetDigestValue.  r=nelsonb.
Modified Files: cms.h cmssigdata.c


git-svn-id: svn://10.0.0.236/trunk@149783 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-26 23:50:02 +00:00
nelsonb%netscape.com
be70d89665 In NSS_CMSSignedData_VerifySignerInfo(), test all returned pointers
for NULL before attempting to dereference them.
Bugscape bug 54057. r=wchang0222


git-svn-id: svn://10.0.0.236/trunk@149777 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-26 22:02:38 +00:00
nelsonb%netscape.com
157cb92337 Performance enhancement. Detect absurdly large modulae in public keys,
and don't waste time on them.  Bugscape bug 54019. r=relyea.


git-svn-id: svn://10.0.0.236/trunk@149760 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-26 06:26:31 +00:00
nelsonb%netscape.com
1d7fcc0087 Remove an unnecessary and incorrect assert call.
Bugscape bug 54018. r=jpierre


git-svn-id: svn://10.0.0.236/trunk@149759 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-26 06:16:01 +00:00
nelsonb%netscape.com
be857c608d This patch reduces the scope of many variables in cmsutil's decode function. It frees the signer's CN string after use.
Bugscape bug 54021.  r=jpierre


git-svn-id: svn://10.0.0.236/trunk@149747 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-25 23:26:39 +00:00
darin%meer.net
4f24da31ce fixes bug 226639 "send NegotiateAlwaysSign in NTLM type 1 message to make NetApp/6.3.3 happy" r+sr=bryner a=dbaron
git-svn-id: svn://10.0.0.236/trunk@149709 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-25 02:12:41 +00:00
wchang0222%aol.com
455d832c79 Bugzilla bug 226470: removed -qarch=com, which is the default for the
compiler.  r=pkw@us.ibm.com.


git-svn-id: svn://10.0.0.236/trunk@149685 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:45:18 +00:00
wchang0222%aol.com
291ab4f083 Bugzilla bug 226470: use a C compiler rather than a C++ compiler to compile
C code.  The patch is contributed by Philip K. Warren <pkw@us.ibm.com>.


git-svn-id: svn://10.0.0.236/trunk@149627 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-22 06:45:50 +00:00
nelsonb%netscape.com
c82b8683b0 Don't invoke PKCS11 with an invalid handle. Bug 226285.
r=relyea sr=wchang0222


git-svn-id: svn://10.0.0.236/trunk@149617 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-21 22:10:56 +00:00
nelsonb%netscape.com
21b5579576 Remove an overreaching constraing on modulus length. Bug 226285.
r=relyea  sr=wchang0222


git-svn-id: svn://10.0.0.236/trunk@149616 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-21 22:09:27 +00:00
nelsonb%netscape.com
64d40dd75b Implement new "batch mode" (see the -b option). Plug some leaks.
Facilitates memory leak testing of the SMIME library.
This revision combines the patches for Bugzilla bug 225513 and
Bugscape bug 53775.  r = relyea and wchang0222


git-svn-id: svn://10.0.0.236/trunk@149575 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 02:33:18 +00:00
nelsonb%netscape.com
7edce8a0fb Don't accept ASN.1 items whose length is 2GB or more.
Bugscape bug 53875.  r=wchang0222 and r=relyea.


git-svn-id: svn://10.0.0.236/trunk@149574 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 02:08:34 +00:00
nelsonb%netscape.com
83da8efc61 Dont attempt to allocate 2GB or more from an arenapool.
Bugscape bug 53875. r=relyea.


git-svn-id: svn://10.0.0.236/trunk@149573 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 02:06:16 +00:00
nelsonb%netscape.com
bf887ff705 Remove as assertion that is triggered by bad data input, but does not
indicate a code flaw.  Bugscape bug 53875. r=relyea


git-svn-id: svn://10.0.0.236/trunk@149572 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 02:04:07 +00:00
nelsonb%netscape.com
2516b242fe Be sure not to ask NSS to use an invalid PKCS11 mechanism.
Bugscape bug 53875.  r=relyea.


git-svn-id: svn://10.0.0.236/trunk@149571 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 02:00:04 +00:00
nelsonb%netscape.com
79dd7b56ae Plug a leak that occurs when code asks NSS to use an invalid PKCS11
mechanism.  Bugscape bug 53875.  r=relyea


git-svn-id: svn://10.0.0.236/trunk@149570 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 01:59:07 +00:00
darin%meer.net
fafb5e9516 fix two "might be used uninitialized" warnings from NTLM patch, bug=224653.
git-svn-id: svn://10.0.0.236/trunk@149538 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 05:00:43 +00:00
nelsonb%netscape.com
1bb67f8d4e near total rewrite of PK11_ParamFromAlgid to eliminate leaks.
Partial fix for Bugscape bug 53875.


git-svn-id: svn://10.0.0.236/trunk@149537 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 03:23:41 +00:00
wchang0222%aol.com
6dd1fdb214 Bugzilla bug 222568: fixed a bug introduced in rev. 1.54.
git-svn-id: svn://10.0.0.236/trunk@149529 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:38:26 +00:00
wchang0222%aol.com
19a3086422 Turns out that we can use a space to separate directories in a vpath
directive.  This works cross platform.


git-svn-id: svn://10.0.0.236/trunk@149526 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:12:31 +00:00
nelsonb%netscape.com
3347b2e3a0 Fix bugs in the new implementation of URI name constraints.
Bugzilla Bug 221616.


git-svn-id: svn://10.0.0.236/trunk@149525 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 00:56:59 +00:00
wchang0222%aol.com
0421e4381f Removed the declaration and a comment about PK11_FreeSlotCerts, which was
deleted in NSS 3.4.
Modified Files: pk11func.h pk11slot.c


git-svn-id: svn://10.0.0.236/trunk@149524 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 00:14:04 +00:00
nelsonb%netscape.com
f8e9fea1e2 Fix unnecessary assertion failures occuring in SMIME testing in
debug builds only.  Partial fix for bugscape bug 53775. r=wchang0222


git-svn-id: svn://10.0.0.236/trunk@149486 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 06:16:26 +00:00
darin%meer.net
1d81a6e2ed revert part of last checkin.
git-svn-id: svn://10.0.0.236/trunk@149485 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 05:57:28 +00:00
darin%meer.net
7625334526 attempting to fix IRIX bustage
git-svn-id: svn://10.0.0.236/trunk@149484 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 05:56:08 +00:00
wchang0222%aol.com
9b28f86489 Most platforms use ':' as path separator, but OS/2 uses ';'. So we use
vpath directivies that specify a single directory to avoid dealing with
path separator.


git-svn-id: svn://10.0.0.236/trunk@149480 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 04:04:05 +00:00
darin%meer.net
79e6c3ed92 fixes bug 224653 "provide cross-platform NTLM auth implementation" r=kaie sr=bryner
git-svn-id: svn://10.0.0.236/trunk@149475 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 02:20:34 +00:00
wchang0222%aol.com
8009c1dd04 Set NSS version to 3.9 Beta 3.
git-svn-id: svn://10.0.0.236/trunk@149466 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 00:57:26 +00:00
wchang0222%aol.com
82c3ca13e1 Bugzilla bug 224707: added Linux HPPA support. The patch came from the
Debian Mozilla package (maintainer is Takuo KITAME <kitame@debian.org>).


git-svn-id: svn://10.0.0.236/trunk@149385 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 00:10:16 +00:00
wchang0222%aol.com
397b035e41 Removed an extraneous character (`) after #endif.
git-svn-id: svn://10.0.0.236/trunk@149361 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 16:16:33 +00:00
wchang0222%aol.com
c3fd04c8d8 Removed an extraneous comma (,) at the end of an enum type definition.
git-svn-id: svn://10.0.0.236/trunk@149360 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 16:15:01 +00:00
nelsonb%netscape.com
268f8a9402 Detect empty emailAddr strings in CERTCertificate. Bugzilla bug 211540.
git-svn-id: svn://10.0.0.236/trunk@149333 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 00:15:28 +00:00
nelsonb%netscape.com
15b7b08f9e Detect empty emailAddr strings in CERTCertificates. Bugzilla bug 211540.
Modified Files:
    cmd/dbck/dbck.c cmd/signtool/util.c lib/certdb/certdb.c
    lib/certdb/stanpcertdb.c lib/pkcs7/p7decode.c lib/pki/certificate.c
    lib/pki/pki3hack.c lib/smime/cmssiginfo.c lib/softoken/pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@149330 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 00:10:01 +00:00
relyea%netscape.com
651dc7dc69 Fix windows breakage.
git-svn-id: svn://10.0.0.236/trunk@149306 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 18:06:50 +00:00
relyea%netscape.com
e15c678739 Add symkeyutil to the manifest file
git-svn-id: svn://10.0.0.236/trunk@149285 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:27:23 +00:00
relyea%netscape.com
5fe2770302 New tool to manage fixed keys in the database.
git-svn-id: svn://10.0.0.236/trunk@149284 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:26:47 +00:00
relyea%netscape.com
419d66af8a Changes for symkey support.
git-svn-id: svn://10.0.0.236/trunk@149283 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:25:52 +00:00
wchang0222%aol.com
fd912aa996 Bugzilla bug 225619: fixed memory leaks.
git-svn-id: svn://10.0.0.236/trunk@149279 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 01:42:51 +00:00
wchang0222%aol.com
1f3c87a56c Bugzilla bug 225626: need to allocate PORTArenaPool rather than PLArenaPool
for the 'arena' member of CERTVerifyLog.  Fixed memory leaks on an error
path.


git-svn-id: svn://10.0.0.236/trunk@149278 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 01:41:15 +00:00
wchang0222%aol.com
9309786b99 Set JSS version to 3.4.2 Beta 2.
Modified Files: CryptoManager.java util/jssver.h


git-svn-id: svn://10.0.0.236/trunk@149277 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 01:37:04 +00:00
wchang0222%aol.com
53b6380376 Upgraded to NSS_3_7_9_RTM (from NSS_3_7_8_RTM).
Modified Files: manifest.mn org/mozilla/jss/CryptoManager.java


git-svn-id: svn://10.0.0.236/trunk@149274 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 23:39:46 +00:00
nicolson%netscape.com
396fbef1a7 Fix 225615: memory leak in SSLSocket.socketConnect.
git-svn-id: svn://10.0.0.236/trunk@149272 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 23:10:13 +00:00
nelsonb%netscape.com
037cabbbac Fix bugzilla bug 225301. r=jpierre. This patch does the following:
1. Fixes the Usage message to document the command line options.
2. Changes the "decode" function to
   a) report an error on bad signatures, only when decoding the input file,
      not when decoding an ancillary "enveloped file".
   b) only output the contents of the "detached content" file (-c option)
      when that file's content was actually used in the computation.
3. Sundry other cleanup and added comments.


git-svn-id: svn://10.0.0.236/trunk@149271 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 23:03:12 +00:00
wchang0222%aol.com
1048ab0991 Fixed a comment error. r=relyea.
git-svn-id: svn://10.0.0.236/trunk@149242 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 16:21:46 +00:00
wchang0222%aol.com
7f3eb1098d Bugzilla bug 225373: the return value of CERT_NameToAscii must be freed
with PORT_Free.
Modified Files:
	cmd/lib/secutil.c cmd/selfserv/selfserv.c
	cmd/signver/pk7print.c cmd/strsclnt/strsclnt.c
	cmd/tstclnt/tstclnt.c lib/certdb/cert.h


git-svn-id: svn://10.0.0.236/trunk@149241 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 16:10:45 +00:00