30 Commits

Author SHA1 Message Date
ian.mcgreer%sun.com
dc6c6834e3 PSM fixes
* implement CERT_AddTempCertToPerm in 3.4
* update object instance lists when needed
* correctly check and allocate trust when changing it


git-svn-id: svn://10.0.0.236/trunk@111495 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-07 16:45:26 +00:00
ian.mcgreer%sun.com
f85961a3de 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.
git-svn-id: svn://10.0.0.236/trunk@111308 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 20:09:30 +00:00
ian.mcgreer%sun.com
56cc1d1af6 some checks that were overlooked
git-svn-id: svn://10.0.0.236/trunk@110925 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 23:17:58 +00:00
nelsonb%netscape.com
f8baf98f49 Check some pointers for NULL before dereferencing them.
git-svn-id: svn://10.0.0.236/trunk@110313 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 23:47:18 +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
1eea1add0d get modification of trust on builtins certs to work by storing the modified trust on the softoken. implement merging of multiple trust instances.
git-svn-id: svn://10.0.0.236/trunk@109899 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 23:43:14 +00:00
ian.mcgreer%sun.com
8fa91e0b3c patches to get s/mime dual key certs working, bug 113741
git-svn-id: svn://10.0.0.236/trunk@109847 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 18:21:38 +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
1f69c02407 changes to get fips working
git-svn-id: svn://10.0.0.236/trunk@107709 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:36:12 +00:00
relyea%netscape.com
162c530b16 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.


git-svn-id: svn://10.0.0.236/trunk@107628 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:15: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
7ec77de1f4 get token name function; change cert function name
git-svn-id: svn://10.0.0.236/trunk@105628 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 14:39:11 +00:00
ian.mcgreer%sun.com
7043b5f496 check in cert lookup functions using the cache
git-svn-id: svn://10.0.0.236/trunk@105266 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 17:54:50 +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
0c9872e57e a number of windows build fixes
git-svn-id: svn://10.0.0.236/trunk@105166 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 17:41:47 +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
ee38eb204c forgot to add this file
git-svn-id: svn://10.0.0.236/trunk@105163 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 16:43:06 +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
ian.mcgreer%sun.com
0e75bc6671 some cleanup; collect token certs in a list
git-svn-id: svn://10.0.0.236/trunk@103335 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 20:38:08 +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
2c10ed3f44 use the list to collect certs
git-svn-id: svn://10.0.0.236/trunk@103225 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 21:37:21 +00:00
mcgreer%netscape.com
bf22305f42 first cut at password handling. todo: implement transaction-based passwords (at a higher level?)
git-svn-id: svn://10.0.0.236/trunk@103213 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 19:08:32 +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
9e7d9cfbc0 make stan buildable using BUILD_STAN variable
git-svn-id: svn://10.0.0.236/trunk@102917 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 18:07:54 +00:00
mcgreer%netscape.com
96afac4792 ah, first bug. init the token last when creating a slot.
git-svn-id: svn://10.0.0.236/trunk@102890 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-13 22:14:22 +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