Граф коммитов

47 Коммитов

Автор SHA1 Сообщение Дата
wtc%netscape.com 3e2a98c878 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
2003-01-08 21:48:47 +00:00
nelsonb%netscape.com 03360ef784 Change coding style used in nss/lib/pki to one that works with ctags.
Bug 169999.   Modified Files:
  asymmkey.c certdecode.c certificate.c cryptocontext.c pki3hack.c
  pkibase.c pkistore.c symmkey.c tdcache.c trustdomain.c
2002-09-23 21:32:35 +00:00
ian.mcgreer%sun.com e8caf7f60e bug 165863, free token on error paths 2002-09-03 19:42:13 +00:00
wtc%netscape.com 1ec3f3bc7e Bug 165859: fixed the problem that 'collection' was destroyed twice on
error in nssTrustDomain_FindCertificateByIssuerAndSerialNumber.
2002-08-31 04:52:46 +00:00
relyea%netscape.com b3adae057a close hole in trust lookups. 2002-08-27 23:38:29 +00:00
ian.mcgreer%sun.com 7e66c201ad When doing cert traversals, create the certs in full as they are found. This avoids thrashing the softoken's object cache when the database has a large number of certs. 2002-04-26 14:34:05 +00:00
relyea%netscape.com 9c0eda08dc 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).
2002-04-22 19:09:01 +00:00
ian.mcgreer%sun.com 72fe6cfda5 catch non-present tokens before searching them 2002-04-18 19:37:12 +00:00
ian.mcgreer%sun.com 26d08192dd landing new smart card cache, bug 135429 2002-04-18 17:30:05 +00:00
ian.mcgreer%sun.com 46d73e79e3 bug 135521, change cert lookups on tokens to be actual finds instead of traversals 2002-04-15 15:22:11 +00:00
ian.mcgreer%sun.com 3861705e53 bug 129778, cert instances incorrectly reset when cert was not deleted
checked in for wtc, r=mcgreer
2002-03-14 17:39:12 +00:00
ian.mcgreer%sun.com 40f9ef3670 bug 125808, refresh trust and slot pointers of cert after token removal/insertion 2002-02-28 22:55:30 +00:00
ian.mcgreer%sun.com 250a72b502 bug 125808, smart card cache fixes 2002-02-27 22:41:56 +00:00
ian.mcgreer%sun.com 68e04b2ebb bug 125796, make sure all CERTCertificates are destroyed as such, and that cache collisions when traversing are handled correctly (by destroying extra reference) 2002-02-26 16:21:48 +00:00
ian.mcgreer%sun.com 06cd3f148a bug 124189, signtool hangs 2002-02-08 15:13:13 +00:00
ian.mcgreer%sun.com f6876300e6 bug 124309, fix various issues with the cache/temp store and thread safety. Is one line different than the patch on the bug, the one line seemed to fix the reported crash. 2002-02-08 02:51:41 +00:00
ian.mcgreer%sun.com 9d0bbe4ab6 bug 121628, persistent cache of hardware token certs 2002-02-01 17:25:15 +00:00
ian.mcgreer%sun.com 3afd5c3d8d fix aix issues 2002-01-24 15:45:55 +00:00
ian.mcgreer%sun.com b2cc5d03dc fix leakage in traversal functions that convert certs to CERTCertificates 2002-01-24 00:34:03 +00:00
ian.mcgreer%sun.com 115a64c8c2 traverse functions need to cache as they run in order to catch multiple instances of certs correctly 2002-01-23 20:35:18 +00:00
ian.mcgreer%sun.com bc65724129 * keep stan in sync with both addition and removal of modules
* clean up compatibilty issues with PKCS#11 serial numbers.  Need to search both encoded and decoded values, while making sure stan code only deals with DER value
2002-01-23 17:00:39 +00:00
relyea%netscape.com 3a6e3f8b94 Initialize OCSP status variable 2002-01-10 00:45:27 +00:00
ian.mcgreer%sun.com e24f442c3f several memory-related fixes
- correct reference counting when combining certs taken from cache and obtained new
- cache keys need to be alloc'ed, for the case when one cert is used to create the cache entry, another (same subject/nick/email) is added, then the first is removed and freed
2002-01-09 21:09:21 +00:00
ian.mcgreer%sun.com f161d6d8f4 memory leak fixes 2002-01-08 15:37:42 +00:00
ian.mcgreer%sun.com 3cff4ec39c move handling of certificate reference counting into Stan. NSS 3.4 needs to maintain persistent references of both temp and perm certs in order to replicate the old temp database. 2002-01-03 20:09:30 +00:00
ian.mcgreer%sun.com baf889251d the last step - restrict trust domain and PK11_ searches to token objects
also, make sure trust is grabbed from crypto context
2001-12-14 20:50:59 +00:00
ian.mcgreer%sun.com 8ab68cde61 implement local store of objects for crypto context 2001-12-14 17:32:23 +00:00
ian.mcgreer%sun.com c6851c9334 first step towards separating token and session object searches as performance enhancement. Searches are still over both types until local cert and trust stores for crypto contexts are implemented. 2001-12-11 20:28:38 +00:00
ian.mcgreer%sun.com b59d15e912 fix bug found from PK11_ListCerts 2001-11-29 22:05:32 +00:00
ian.mcgreer%sun.com 87e2811f81 fix memory leaks 2001-11-29 19:34:08 +00:00
ian.mcgreer%sun.com c3cb1b39dc land changes for handling temporary and cached certs in 3.4
* separate trust object from cert object
* move handling of cryptoki objects into libdev
* implement digest in libdev (for trust object indexing)
* fixes in cache implementation; connect cache to 3.4 certs
* implement CERT_NewTempCertificate via crypto context
2001-11-28 16:23:51 +00:00
relyea%netscape.com 3c7bfd0d6e More PSM fixes:
clean up of the escape adding string code.
   Code to keep cert->trust in sync with nscert->trust in various situations.
   Code to allow old version of built-ins to continue to work.
   Implement TrustDomain_TraverseCertificates so that PK11_ListCerts will work.
2001-11-20 18:28:49 +00:00
ian.mcgreer%sun.com bf236592dd disabling cert cache (temporarily) 2001-11-09 16:39:34 +00:00
ian.mcgreer%sun.com 99acfbbff7 a plethora of changes for handling S/MIME certs 2001-11-08 20:46:11 +00:00
ian.mcgreer%sun.com 7d95c74f28 add lookup by email function, try to fix softoken bugs for that (but cert->emailAddr doesn't seem to be set there) 2001-11-08 05:19:32 +00:00
relyea%netscape.com e03f762c52 Land BOB_WORK_BRANCH unto the tip.
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.
2001-11-08 00:15:51 +00:00
ian.mcgreer%sun.com a3c7505e98 get/set cert trust through PKCS#11; traversal methods for CERT_ calls; define usage for 3.4 2001-10-19 18:16:45 +00:00
ian.mcgreer%sun.com 1439df7ab7 some more cert lookup methods; find cert issuer/chain; mimic nickname as "token name:nickname" 2001-10-17 14:40:27 +00:00
ian.mcgreer%sun.com ee48e4329a check in cert lookup functions using the cache 2001-10-12 17:54:50 +00:00
ian.mcgreer%sun.com f80d2ca9c3 fix optimized builds 2001-10-11 18:41:51 +00:00
ian.mcgreer%sun.com a1f9c34e10 more solaris fixes 2001-10-11 18:40:34 +00:00
ian.mcgreer%sun.com 764254c0b9 define decoded cert type; implement cert cache; glue code for old NSS types; define global default trust domain 2001-10-11 16:34:49 +00:00
ian.mcgreer%sun.com ffb3ad3951 some cleanup; use list for modules 2001-09-20 20:40:03 +00:00
mcgreer%netscape.com e2ae069f19 match changes in dev, implement lookup by nickname for testing 2001-09-19 21:49:52 +00:00
mcgreer%netscape.com b5570a1c32 cleanup; match changes to dev/; update doc 2001-09-18 20:55:01 +00:00
mcgreer%netscape.com aadc955508 Use NSS_IMPLEMENT in code files for consistency.
Implement some basic certificate routines.
Define some of the PKI types.
Implement some trust domain routines, but only for testing purposes.
Allow for building as shared library.
2001-09-13 22:16:22 +00:00
mcgreer%netscape.com 817046f0e9 what's this, a checkin to lib/pki?
stub out function implementations, make it build
2001-07-19 20:41:38 +00:00