116 Commits

Author SHA1 Message Date
wtc%netscape.com
83b9358446 Bug 186586: If at NSS shutdown there are still certs in the cert caches,
cause NSS shutdown and the next NSS initialization to fail but do not
destroy the cert caches (and the crypto context and trust domain containing
them) to avoid a crash if the NSS client destroys the certs later.  New
error codes needed to be added to indicate the failure of NSS shutdown and
NSS initialization due to this cause.
Modified Files:
	base/errorval.c nss/nssinit.c pki/pki3hack.c pki/pki3hack.h
	pki/pkistore.c pki/pkistore.h pki/tdcache.c pki/trustdomain.c
	util/secerr.h


git-svn-id: svn://10.0.0.236/trunk@136014 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:48:47 +00:00
nelsonb%netscape.com
d36cf9c052 Support SHA256, SHA384, and SHA512 hashes in NSS.
git-svn-id: svn://10.0.0.236/trunk@135163 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 06:05:45 +00:00
ian.mcgreer%sun.com
4a6e624c98 bug 172247, don't allow import of duplicate issuer/serial certs
git-svn-id: svn://10.0.0.236/trunk@134280 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 20:43:15 +00:00
nelsonb%netscape.com
c97983a27d Recognize new SHAxxx OIDs.
git-svn-id: svn://10.0.0.236/trunk@133950 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 03:34:53 +00:00
jpierre%netscape.com
31c66bd1dc Assert if the QuickDER decoder does not consume all the input
git-svn-id: svn://10.0.0.236/trunk@133449 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 01:56:01 +00:00
jpierre%netscape.com
10b1e97dd0 Fix for 177208 - unmark arena when DER decoding is successful
git-svn-id: svn://10.0.0.236/trunk@132748 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-31 01:54:13 +00:00
jpierre%netscape.com
ea0798106c Fix comment formatting style
git-svn-id: svn://10.0.0.236/trunk@132418 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 23:41:02 +00:00
jpierre%netscape.com
b43037d69f Fix for bug 95311 - replace assertion with comments
git-svn-id: svn://10.0.0.236/trunk@132417 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 23:18:17 +00:00
jpierre%netscape.com
05f57072ae Fix for bug 175167 - SEC_QuickDERDecodeItem should fre memory upon failure. r=wtc
git-svn-id: svn://10.0.0.236/trunk@132272 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-18 22:32:34 +00:00
nelsonb%netscape.com
cb354d67e7 Fix DER_GetInteger. Bug 174644.
git-svn-id: svn://10.0.0.236/trunk@132052 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 01:36:10 +00:00
relyea%netscape.com
faa9e5505e Bug 164501. Return a proper error code from PK11_FindCrlByName() so the CRL
code can decide if there is a hw or system failure preventing the reading of a
CRL or if the CRL is just not there.


git-svn-id: svn://10.0.0.236/trunk@131706 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 20:30:19 +00:00
wtc%netscape.com
45321d5b82 Use the enumeration constant 'siBuffer' instead of 0.
git-svn-id: svn://10.0.0.236/trunk@130808 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 20:36:54 +00:00
jpierre%netscape.com
1e94cc1160 Fix indentation
git-svn-id: svn://10.0.0.236/trunk@129826 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 21:31:28 +00:00
jpierre%netscape.com
957c5087bd Fix UMC in Purify
git-svn-id: svn://10.0.0.236/trunk@129760 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-16 23:25:04 +00:00
jpierre%netscape.com
9ec3621b1e Roll back change
git-svn-id: svn://10.0.0.236/trunk@129032 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 03:19:56 +00:00
jpierre%netscape.com
443e868838 Fix compiler warnings
git-svn-id: svn://10.0.0.236/trunk@129014 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 00:35:00 +00:00
jpierre%netscape.com
0adf875bdb Fix compiler warnings
git-svn-id: svn://10.0.0.236/trunk@129012 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 00:25:49 +00:00
jpierre%netscape.com
6d6cd1ef6b Fix compiler warning
git-svn-id: svn://10.0.0.236/trunk@129011 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 00:22:50 +00:00
jpierre%netscape.com
41219d0258 Fix compiler warning under windows
git-svn-id: svn://10.0.0.236/trunk@129010 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 00:14:14 +00:00
nicolson%netscape.com
4b34ca8158 Fix 164126: makefile build error.
Change the NSS module name from "security" to "nss".


git-svn-id: svn://10.0.0.236/trunk@128961 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 16:38:56 +00:00
jpierre%netscape.com
0a57a6320a Fix for 160805 . Make a copy of items into the arena before calling SEC_QuickDERDecodeItem where needed
git-svn-id: svn://10.0.0.236/trunk@128597 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-31 00:37:52 +00:00
wtc%netscape.com
b2ff1b60f8 Checked in an equivalent but simpler fix for Bug 165639
(NSSRWLock_UnlockWrite failed to wake up waiting readers).


git-svn-id: svn://10.0.0.236/trunk@128596 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 23:55:51 +00:00
jpierre%netscape.com
fe8373b9af Fix for 165639 - NSSRWLock_UnlockWrite causes deadlock when using recursivity of locoks. Fix by Wan-Teh
git-svn-id: svn://10.0.0.236/trunk@128592 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 22:46:45 +00:00
jpierre%netscape.com
737d6d9371 Fix comment
git-svn-id: svn://10.0.0.236/trunk@128591 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 22:45:46 +00:00
jpierre%netscape.com
e9fb1eeb0d Fix memory corruption
git-svn-id: svn://10.0.0.236/trunk@128407 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-29 01:28:53 +00:00
kaie%netscape.com
171583bc21 b=107034 OE requires special attribute in incoming signed messages to support dual key certificates. Add new function
NSS_CMSSignerInfo_AddMSSMIMEEncKeyPrefs.
r=relyea


git-svn-id: svn://10.0.0.236/trunk@128249 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 13:14:42 +00:00
kaie%netscape.com
0a8bd297cb Backing myself out, since it didn't compile on Win32, and I would like to discuss the correct fix.
git-svn-id: svn://10.0.0.236/trunk@128188 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 00:05:11 +00:00
kaie%netscape.com
8ceba8cca5 b=107034 OE requires special attribute in incoming signed messages to support dual key certificates. Add new function
NSS_CMSSignerInfo_AddMSSMIMEEncKeyPrefs.
r=relyea


git-svn-id: svn://10.0.0.236/trunk@128165 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 21:34:31 +00:00
jpierre%netscape.com
8477590d10 Correctly count the number of items in a SEQUENCE OF or SET OF in quickder decoder. Bug found by one of Terry's tests.
git-svn-id: svn://10.0.0.236/trunk@127426 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 00:05:55 +00:00
jpierre%netscape.com
e528c7739a Updates to quick DER decoder, bug # 161215
Fixes from Terry's review :
- remove quick allocator
- always allocate entry array even if there is 0 entry
- rename DecodeConstructed to DecodeExplicit and use a better test for that case
- other misc small fixes
Also move SEC_QuickDERDecodeItem to secasn1.h


git-svn-id: svn://10.0.0.236/trunk@126723 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 01:54:38 +00:00
jpierre%netscape.com
0d0058982f Additional error reporting
git-svn-id: svn://10.0.0.236/trunk@126598 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 03:47:23 +00:00
jpierre%netscape.com
7f8d8bb692 Reorder functions to avoid forward declaration of DecodePointer
git-svn-id: svn://10.0.0.236/trunk@126596 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 03:40:47 +00:00
jpierre%netscape.com
a150615a41 Be consistent in memory allocations - use QuickZAlloc
git-svn-id: svn://10.0.0.236/trunk@126594 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 03:36:46 +00:00
jpierre%netscape.com
54ed62902c Add new quick DER decoder. r=wtc
git-svn-id: svn://10.0.0.236/trunk@126586 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 03:25:47 +00:00
nelsonb%netscape.com
04d0d3b0e6 Add missing const qualifiers to NSS's regular expression match functions.
git-svn-id: svn://10.0.0.236/trunk@126013 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-29 21:30:31 +00:00
relyea%netscape.com
87e98bd000 Initialize type fields to supress purify uninitialized reference warnings.
git-svn-id: svn://10.0.0.236/trunk@124260 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 03:00:10 +00:00
relyea%netscape.com
e75b9bf3b7 Copy the type value as well as the rest.
git-svn-id: svn://10.0.0.236/trunk@123954 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:57:27 +00:00
thayes%netscape.com
7eb9837675 Reserve OID (netscape_name_components 2) - see 605437
git-svn-id: svn://10.0.0.236/trunk@122701 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:46:05 +00:00
wtc%netscape.com
ae173749da Bugzilla bug 131171: added HP-UX IPF (ia64) support. Portions of the patch
(attachment 84127) were contributed by Jim Dunn <jdunn@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@121813 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 00:52:11 +00:00
relyea%netscape.com
02cae503ef Add new error code for trying to all previously deleted modules which have not yet been freed.
git-svn-id: svn://10.0.0.236/trunk@121262 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-10 18:12:39 +00:00
wtc%netscape.com
58c8b6839b Bugzilla bug 131057: define PORT_Strdup as a function that calls PORT_Alloc.
Modified files:
	lib/ckfw/nsprstub.c lib/fortcrypt/swfort/pkcs11/stub.c
	lib/nss/nss.def lib/util/secport.c lib/util/secport.h


git-svn-id: svn://10.0.0.236/trunk@120367 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 00:06:39 +00:00
thayes%netscape.com
684371ee8f Reserved Netscape extension (NETSCAPE 1 18)
git-svn-id: svn://10.0.0.236/trunk@119646 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-23 23:48:20 +00:00
nelsonb%netscape.com
62cdc6bce9 Make libutil build for WinCE.
git-svn-id: svn://10.0.0.236/trunk@118059 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 00:11:48 +00:00
nelsonb%netscape.com
baa6dae990 Warning reduction. substitute (uchar) cast for ANDing with 0xff.
git-svn-id: svn://10.0.0.236/trunk@118058 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 00:10:34 +00:00
nicolson%netscape.com
8b535dcde0 Fix 130522: ASN.1 decoder asserts with corrupt input.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@117447 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 01:13:23 +00:00
wtc%netscape.com
53cfca6a3b Bugzilla bug 131057: define PORT_Strdup as PL_strdup so that it uses NSPR's
memory allocator.  r=mcgreer.  Modified files: secport.c secport.h


git-svn-id: svn://10.0.0.236/trunk@116629 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 05:54:22 +00:00
wtc%netscape.com
52f5bfd019 Bugzilla bug 70217: ported NSS to BeOS. The patch is contributed by
Christopher Seawood <seawood@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@115206 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 04:23:30 +00:00
ian.mcgreer%sun.com
202313e65b bug 125359, by default the ASN.1 en/decoder should treat all numbers as signed. But many source/target items desire unsigned integers (specifically, bignums in the crypto stuff), so implement an siUnsignedInteger type which notifies the en/decoder to handle the conversion.
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@115170 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 22:41:44 +00:00
nelsonb%netscape.com
d58ebedbc4 Change most coreconf and NSS makefiles to use OS_TARGET (which can
be overridden via an environment variable) rather than OS_ARCH.
This is a precursor to more flexibility in cross-platform builds.
Bug 104541.


git-svn-id: svn://10.0.0.236/trunk@114608 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 22:54:08 +00:00
ian.mcgreer%sun.com
db557442e8 bug 124446, thread safety issues with static oid hashtable.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@114206 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-11 23:12:00 +00:00