27 Commits

Author SHA1 Message Date
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
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
relyea%netscape.com
2f2fb64005 close hole in trust lookups.
git-svn-id: svn://10.0.0.236/trunk@128309 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 23:38:29 +00:00
relyea%netscape.com
895fa532b2 remove unreferenced Variable.
git-svn-id: svn://10.0.0.236/trunk@126900 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 18:05:24 +00:00
ian.mcgreer%sun.com
1e68160965 bug 142175, PK11_ListCerts regressions -- handle PKCS#11 incompatibilites with serial numbers, and fix trust collection.
git-svn-id: svn://10.0.0.236/trunk@120949 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 14:58:12 +00:00
relyea%netscape.com
81f4e81e01 Don't set the Token value before fetching CRL attributes. This code is fetching
attributes from a known CRL, not looking up new attributes (I'm pretty sure that
CVS apropos would show I checked in the previously wrong code).

bob


git-svn-id: svn://10.0.0.236/trunk@119832 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 18:33:45 +00:00
ian.mcgreer%sun.com
2f83527b52 landing new smart card cache, bug 135429
git-svn-id: svn://10.0.0.236/trunk@119274 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 17:30:05 +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
7d579a63ce Handle yet another PKCS #11 device which has non-standard behavior, but is well established in the market place.
git-svn-id: svn://10.0.0.236/trunk@118553 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 17:58:00 +00:00
ian.mcgreer%sun.com
dbcf2c42b3 Land Stan changes to tip. Mostly header file / structure / API cleanup. Note
that these changes *do not* affect the current build, except for some minor edits.


git-svn-id: svn://10.0.0.236/trunk@118136 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 20:00:28 +00:00
relyea%netscape.com
d0f2ca5260 handle older tokens that do not handle GetAttributes correctly.
git-svn-id: svn://10.0.0.236/trunk@116654 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 19:51:27 +00:00
relyea%netscape.com
f5ee7acbf0 Unsigned values are always greater than '0'!
git-svn-id: svn://10.0.0.236/trunk@113170 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 00:48:24 +00:00
relyea%netscape.com
9b55e3a569 Built-ins set the ulValueLen to -1 to indicate an unknown attribute type.
git-svn-id: svn://10.0.0.236/trunk@113141 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:12:13 +00:00
ian.mcgreer%sun.com
b759894bd4 fix breakage caused by yesterday's checkins; since softoken no longer returns terminating NULL for strings must add it above PKCS#11
also fixes bug 121384


git-svn-id: svn://10.0.0.236/trunk@112579 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 14:37:48 +00:00
ian.mcgreer%sun.com
331318a796 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.
git-svn-id: svn://10.0.0.236/trunk@110278 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 20:28:38 +00:00
relyea%netscape.com
dd1d27c432 Clean up compilier warnings on Solaris and Linux, most particularly:
1) Implicit declaration of function.
2) Possibly unitialized variables.

These warnings have indicated some real problems in the code, so many changes
are not just to silence the warnings, but to fix the problems. Others were
inocuous, but the warnings were silenced to reduce the noise.


git-svn-id: svn://10.0.0.236/trunk@109938 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:36:25 +00:00
ian.mcgreer%sun.com
233b7897cf 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


git-svn-id: svn://10.0.0.236/trunk@109138 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 16:23:51 +00:00
ian.mcgreer%sun.com
8a2c7868fb fix handling of token options, specifically deletion
git-svn-id: svn://10.0.0.236/trunk@107606 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 16:15:29 +00:00
ian.mcgreer%sun.com
7284b139b8 some attribute and session cleanup
git-svn-id: svn://10.0.0.236/trunk@107340 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 17:18:48 +00:00
ian.mcgreer%sun.com
23691f4bd8 set attributes function; rename find to traverse; return object handle on import
git-svn-id: svn://10.0.0.236/trunk@105781 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 18:10:58 +00:00
ian.mcgreer%sun.com
4da3282daa more solaris fixes
git-svn-id: svn://10.0.0.236/trunk@105176 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 18:40:34 +00:00
ian.mcgreer%sun.com
a86dba1947 fix broken tbox builds for solaris for now
git-svn-id: svn://10.0.0.236/trunk@105164 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 17:05:08 +00:00
ian.mcgreer%sun.com
2d3ef1d510 add glue code for old NSS types; fix certificate lookup
git-svn-id: svn://10.0.0.236/trunk@105161 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 16:33:38 +00:00
ian.mcgreer%sun.com
51f51d580d make this module buildable using NSS 3.x headers; some cleanup
git-svn-id: svn://10.0.0.236/trunk@104819 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 20:19:30 +00:00
mcgreer%netscape.com
224311fbd6 the device API is not public, so move:
NSSModule_ ==> nssModule_
NSSSlot_   ==> nssSlot_
NSSToken_  ==> nssToken
Functions which should be public can be changed individually.


git-svn-id: svn://10.0.0.236/trunk@103226 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 21:47:23 +00:00
mcgreer%netscape.com
bfe5a4a03b cleanup; add nssSession type to allow multiple sessions accessing the token API
git-svn-id: svn://10.0.0.236/trunk@103104 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 20:54:28 +00:00
mcgreer%netscape.com
4a2c156d61 initial checkin of the cryptoki device library code for stan. The current
amount of implemented code does little more than basic initialization of
a module and loading of a module's slots and tokens.


git-svn-id: svn://10.0.0.236/trunk@102889 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-13 22:06:10 +00:00