54 Commits

Author SHA1 Message Date
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
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
relyea%netscape.com
156fb9e6dc Cache whether there are no CRL's and Trust objects on removable HW tokens
git-svn-id: svn://10.0.0.236/trunk@116101 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 23:21:39 +00:00
ian.mcgreer%sun.com
8e15d46893 bug 129298, handle different nicknames across tokens
r=relyea/a=wtc


git-svn-id: svn://10.0.0.236/trunk@116093 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 22:08:00 +00:00
relyea%netscape.com
c42edc81c4 bug 125808 :
Reset the token name on token removal.
Check for token presence to reset the session handle.
Consolidate the NSS3 style TokenInit with the stan init so everything is in sync.
r=ddrinan


git-svn-id: svn://10.0.0.236/trunk@115905 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 01:44:50 +00:00
relyea%netscape.com
b05500f1e0 Fix token/cert interactions:
1) don't have certs disappear because we have empty tokens.
2) Make sure the NSSToken structure has up-to-date nicknames.


git-svn-id: svn://10.0.0.236/trunk@115743 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 22:39:28 +00:00
ian.mcgreer%sun.com
0fd4de720c IMPLEMENT-->EXTERN for header file
git-svn-id: svn://10.0.0.236/trunk@115725 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 17:17:47 +00:00
ian.mcgreer%sun.com
c6c1bc65dc bug 125808, update cert token instances when caching smart card certs that are already cached
git-svn-id: svn://10.0.0.236/trunk@115724 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 17:13:54 +00:00
ian.mcgreer%sun.com
c8a065c248 partial fix for bug 125808, if the otken is not logged in when the cert cache loading is done, retry later
git-svn-id: svn://10.0.0.236/trunk@115441 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-27 21:36:19 +00:00
relyea%netscape.com
3bf2f19204 Use timers to determine whether or not to do the smart card present checks
or not.

bob


git-svn-id: svn://10.0.0.236/trunk@114614 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 00:29:37 +00:00
relyea%netscape.com
ee5c92c39f Fix missing certs from the listing of all the certs in tokens with large cert caches (larger than 32).
git-svn-id: svn://10.0.0.236/trunk@114603 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 17:37:58 +00:00
ian.mcgreer%sun.com
025e636383 bug 125165, don't crash when the softoken fails to return attributes for a cert object
git-svn-id: svn://10.0.0.236/trunk@114429 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 21:09:15 +00:00
ian.mcgreer%sun.com
6bdc28b0d8 place where iterator was not freed
git-svn-id: svn://10.0.0.236/trunk@113721 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 22:32:38 +00:00
ian.mcgreer%sun.com
7ec531594f last part of bug 121628, permanent slots should respond immediately to IsPresent() call
git-svn-id: svn://10.0.0.236/trunk@113631 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:57:07 +00:00
ian.mcgreer%sun.com
126fdb9cd7 bug 121628, persistent cache of hardware token certs
git-svn-id: svn://10.0.0.236/trunk@113428 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 17:25:15 +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
6cebd8d49a * 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


git-svn-id: svn://10.0.0.236/trunk@112584 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 17:00:39 +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
relyea%netscape.com
f29e33a844 Fix label stuff.
git-svn-id: svn://10.0.0.236/trunk@112556 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:20:32 +00:00
relyea%netscape.com
ca3b68231a Increment length on LABEL, not on CLASS to catch the added NULL case.
git-svn-id: svn://10.0.0.236/trunk@112417 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 03:35:18 +00:00
ian.mcgreer%sun.com
12e19f1e39 fix a crash seen in PSM by making sure a zero-length attribute zeroes the item inheriting it
git-svn-id: svn://10.0.0.236/trunk@112353 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 21:23:30 +00:00
ian.mcgreer%sun.com
3272fa4c5c 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


git-svn-id: svn://10.0.0.236/trunk@111728 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 21:09:21 +00:00
ian.mcgreer%sun.com
93942f465e memory leak fixes
git-svn-id: svn://10.0.0.236/trunk@111574 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 15:37:42 +00:00
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