351 Commits

Author SHA1 Message Date
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
b694a86db9 Fix for 162983 - consider all certs revoked if there is a bad CRL in the cache
git-svn-id: svn://10.0.0.236/trunk@128946 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 06:53:03 +00:00
wtc%netscape.com
16ce983004 Bugs 166734 and 166785: fixed compiler warnings reported by gcc on Linux.
The patch for this checkin is attached to bug 166785.


git-svn-id: svn://10.0.0.236/trunk@128926 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 00:27:52 +00:00
wtc%netscape.com
ed33538220 Fixed unresolved symbol DPCache_Refresh, which I believe is a misspelling
of DP_RefreshCache.


git-svn-id: svn://10.0.0.236/trunk@128879 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-05 16:34:27 +00:00
jpierre%netscape.com
c21d4d52fd Fix for 166714 - make SEC_FindCrlByName use the CRL cache
git-svn-id: svn://10.0.0.236/trunk@128864 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-05 06:12:33 +00:00
nelsonb%netscape.com
2298373c34 Treat empty SubjectAltName extensions as if they were non-existant.
Bugs 162979 166454.


git-svn-id: svn://10.0.0.236/trunk@128783 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 00:42:01 +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
jpierre%netscape.com
10bc1a61c0 Implement the CRL cache . Bug 149854
git-svn-id: svn://10.0.0.236/trunk@128594 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 22:57:03 +00:00
jpierre%netscape.com
20841a8843 Convert slow SEC_ASN1DecodeItem calls to SEC_QuickDERDecodeItem where possible. Performance improvement. Bug #160805 . r=relyea
git-svn-id: svn://10.0.0.236/trunk@128023 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-24 00:52:47 +00:00
wtc%netscape.com
de732d34dc Bug 164035: checked in a small code optimization suggested by
J”rg Brunsmann <joerg_brunsmann@yahoo.de>. Use the local variable that
has the same value.


git-svn-id: svn://10.0.0.236/trunk@127865 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-22 18:05:32 +00:00
wtc%netscape.com
e87805b09f Bug 163863: removed duplicate PORT_Memset calls in CERT_KeyFromDERCert.
Thanks to J”rg Brunsmann <joerg_brunsmann@yahoo.de> for the fix.


git-svn-id: svn://10.0.0.236/trunk@127779 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-21 18:05:20 +00:00
relyea%netscape.com
1364a51ba2 bug 161552: Make the recipient list traversal functions call the internal
nsstoken_FindCertByIssuerAndSN() function to gain the benefit of the fixed
Searching code.


git-svn-id: svn://10.0.0.236/trunk@127272 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 20:42:40 +00:00
jpierre%netscape.com
3459b6c362 Stop referencing deleted quickder.h header
git-svn-id: svn://10.0.0.236/trunk@126724 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 01:55:34 +00:00
jpierre%netscape.com
08b5310223 Implement partial CRL decoding. Fix for 149816. r=wtc . Uses new quick DER decoder
git-svn-id: svn://10.0.0.236/trunk@126597 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 03:44:12 +00:00
relyea%netscape.com
d3854a3ac9 1) factor out fortezzav1 from the chain processing code to make the code easier
to read.
2) only extract keys if we are using fortezzav1 cert (should speed up cert verify
a bit).
3) Add function to verify a specific CA cert to verify a userCert Usage.


git-svn-id: svn://10.0.0.236/trunk@126239 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-02 17:51:20 +00:00
jpierre%netscape.com
4e27b4f0f9 Fix compiler warnings on NT
git-svn-id: svn://10.0.0.236/trunk@126201 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-02 00:53:15 +00:00
jpierre%netscape.com
31b81fddbf Fix incorrect macro usage
git-svn-id: svn://10.0.0.236/trunk@126199 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-02 00:28:23 +00:00
nelsonb%netscape.com
6c2348addf Correct the test of IP addresses in Subject Alternative Name extensions.
bug 103752.


git-svn-id: svn://10.0.0.236/trunk@126191 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-01 22:51:56 +00:00
nelsonb%netscape.com
08c75734ef Fix code to work when subjectAltName extension not present in server cert.
Bug 103752.


git-svn-id: svn://10.0.0.236/trunk@126091 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-30 23:15:43 +00:00
nelsonb%netscape.com
e62adbff54 Examine SubjectAltName extensions for SSL server name matching.
Bug 103752.


git-svn-id: svn://10.0.0.236/trunk@126071 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-30 19:32:33 +00:00
jpierre%netscape.com
a6c742786a 158005 - add new CRL decode and import functions . Benefits are :
- ability to import to any slot
- ability to specify decode options, such as "don't copy DER"
- ability to specify import options, such as "don't do CRL checks"
This patch also maps the existing functions SEC_NewCrl and CERT_ImportCRL
to this new function, eliminating the code duplication that existed


git-svn-id: svn://10.0.0.236/trunk@125481 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 00:59:34 +00:00
jpierre%netscape.com
66501867de Fix for 156802 - remove improper check in CRL decoding
git-svn-id: svn://10.0.0.236/trunk@125477 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 00:12:13 +00:00
jpierre%netscape.com
e47cdb034a Fix for 154212
git-svn-id: svn://10.0.0.236/trunk@124916 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:56:16 +00:00
jpierre%netscape.com
fdc7963798 Fix for 154212 - update patch for CERT_SaveSMimeProfile based on Bob's comments
git-svn-id: svn://10.0.0.236/trunk@124907 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:07:39 +00:00
jpierre%netscape.com
f29a33f656 Add new CERT_VerifyCertificate function - fix for 149832
git-svn-id: svn://10.0.0.236/trunk@124664 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 03:09:49 +00:00
relyea%netscape.com
ff3a4be02e More performance improvements in listing certs:
1) reduce more short term memory allocate/frees.
	2) remove sha1 hash calculations from critical paths.
	3) when listing user certs, skip decoding of non-user certs.


git-svn-id: svn://10.0.0.236/trunk@124499 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 15:11:29 +00:00
jpierre%netscape.com
080a53305e Fix for 154212 - make CERT_SaveSMimeProfile copy the cert to the database if it comes from an external source
git-svn-id: svn://10.0.0.236/trunk@124144 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 00:18:35 +00:00
relyea%netscape.com
0a5dcbb6de Reduce the cost of decoding a certificate.
git-svn-id: svn://10.0.0.236/trunk@123701 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 18:53:16 +00:00
rangansen%netscape.com
00563fcd57 exporting CERT_VerifyCertChain. r=relyea
git-svn-id: svn://10.0.0.236/trunk@123595 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:58:51 +00:00
relyea%netscape.com
f48424e371 Add series to keep track of object handle value validity.
git-svn-id: svn://10.0.0.236/trunk@123245 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 21:42:41 +00:00
relyea%netscape.com
23cb868af3 Don't crash if url is specified, but the crl is broken
git-svn-id: svn://10.0.0.236/trunk@121955 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-21 21:26:52 +00:00
ian.mcgreer%sun.com
aeac107432 bug 144309, return value of STAN_GetCERTCertificate not checked
r=wtc


git-svn-id: svn://10.0.0.236/trunk@121875 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 18:05:11 +00:00
jpierre%netscape.com
a7116d8ca2 Fix for bug 142868 - CA certificates are imported with NULL nicknames .
git-svn-id: svn://10.0.0.236/trunk@121276 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-10 20:21:38 +00:00
relyea%netscape.com
394940b694 Automatically create a NULL email profile for certs with email addresses which
are imported into the internal token.


git-svn-id: svn://10.0.0.236/trunk@120975 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 20:38:59 +00:00
ian.mcgreer%sun.com
2bda604c43 bug 141355, CERT_DecodeDERCertificate is not a safe function for some uses, must be replaced with CERT_NewTempCertificate.
git-svn-id: svn://10.0.0.236/trunk@120556 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 19:00:13 +00:00
wtc%netscape.com
430098b6dd Deleted code that was made obsolete by the previous revision.
git-svn-id: svn://10.0.0.236/trunk@119868 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 21:10:09 +00:00
ian.mcgreer%sun.com
d8db4158aa bug 138626, remove deleted cert from cache even if references still exist
git-svn-id: svn://10.0.0.236/trunk@119844 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 19:37:30 +00:00
relyea%netscape.com
9cc9d97ae5 Don't crash if we don't find the profile (and thus don't have a slot to free).
git-svn-id: svn://10.0.0.236/trunk@119767 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 22:23:37 +00:00
ian.mcgreer%sun.com
d2b3f9f435 NewTemp has to be matched with AddTempCertToPerm
git-svn-id: svn://10.0.0.236/trunk@119558 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 20:27:52 +00:00
relyea%netscape.com
034136c5db Token and cert processing fixes:
1) use NewTempCert rather than DERDecode cert in all import cert cases.
When DERDecode cert is used, we may wind up with a cert that gets cleared
when we try to import it because it already in the cache. NewTempCert will
return the version that is in the cache.
   2) If we are returning the CAList, only return certs that are CA's
(not usercerts).
   3) Authenticate to all the tokens if necessary before we try to list
certs. (Stan code should eventually get automatic authentication calls in
the code itself).
   4) When looking up user certs, don't return those certs with the same
subject, but do not have any key material associated with them (that is
don't crash if we have old certs in our database without nicknames, but
match user certs on our smart cards).
   5) Save the nickname associated with our subject list in the temp
cache so we can correctly remove the entry even if the cert's nickname
changes (because of smart card insertions and removals, or because of
creation and deletions of our user cert).


git-svn-id: svn://10.0.0.236/trunk@119557 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 19:09:01 +00:00
ian.mcgreer%sun.com
9d553c9294 fix bugs in cert import with smart card cache
git-svn-id: svn://10.0.0.236/trunk@119546 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 14:14:44 +00:00
ian.mcgreer%sun.com
f87d824279 bug 135521, change cert lookups on tokens to be actual finds instead of traversals
git-svn-id: svn://10.0.0.236/trunk@118986 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-15 15:22:11 +00:00
relyea%netscape.com
50406c66c5 Bug 133584: Fix reference leaks which prevent shutdown in NSS and in the tests.
Debug builds can verify correct operation by setting NSS_STRICT_SHUTDOWN, which
will cause an assert if shutdown is called but not all the modules are freed (which
means a slot, key, or cert reference has been leaked).


git-svn-id: svn://10.0.0.236/trunk@118866 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 19:05:21 +00:00
nelsonb%netscape.com
14d0da3976 Add enum names for use in forward declarations.
git-svn-id: svn://10.0.0.236/trunk@118674 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-10 23:27:50 +00:00
ian.mcgreer%sun.com
1a75fc7207 bug 135871, CERT_ImportCerts not storing temp certs
r=relyea


git-svn-id: svn://10.0.0.236/trunk@118578 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 23:46:57 +00:00
wtc%netscape.com
6b4e8e1a3b Bug 135728: should return SECFailure because the function's return type
is SECStatus.  r=mcgreer.


git-svn-id: svn://10.0.0.236/trunk@118273 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 19:25:48 +00:00
wtc%netscape.com
0312d76fcb Bugzilla bug 130703: final adjustment of the CERTSignedCrl structure for
NSS 3.4.  r=relyea.


git-svn-id: svn://10.0.0.236/trunk@116656 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 20:21:45 +00:00
wtc%netscape.com
6df50775c7 Bugzilla bug 130983: SEC_FindCrlByName needs to set the 'pkcs11ID' field
of the CERTSignedCrl structure it returns.  The patch is contributed by
Rangan Sen <rangansen@netscape.com>.  r=relyea.


git-svn-id: svn://10.0.0.236/trunk@116655 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 20:17:15 +00:00
ian.mcgreer%sun.com
e837eb40ac bug 129709, incorrect free of cert->nickname
r=wtc


git-svn-id: svn://10.0.0.236/trunk@116562 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 17:42:02 +00:00
wtc%netscape.com
a8e2c91a4d Bugzilla bug 130703: fixed several issues in the NSS 3.4 exported headers.
1) Preseve the position of NSS 3.3 elements in the data structures.  Some
new fields replace some old deprecated fields where possible to preserve
the total size of the structure.
2) Stan headers are removed from public exports.
3) Some exported functions didn't have prototypes in the public headers.
4) One bug fix: dev3hack.c did not pass the second argument to
nssToken_DestroyCertList.
5) Include the necessary headers to fix undeclared function warnings.


git-svn-id: svn://10.0.0.236/trunk@116522 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 04:12:25 +00:00