24 Commits

Author SHA1 Message Date
relyea%netscape.com
7b98e5b2cd Multi-access database race condition patches. These changes are already checked
into NSS 3.6.1.


git-svn-id: svn://10.0.0.236/trunk@133591 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-11 22:00:03 +00:00
relyea%netscape.com
e16188c400 Fix minor memory leak on init.
git-svn-id: svn://10.0.0.236/trunk@131702 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 20:09:30 +00:00
wtc%netscape.com
7bf501f1b0 Bug 169581: the last two arguments to pk11_mkSlotString should have the
type PRBool, not unsigned char.  As a byproduct this change works around
what seems to be a gnupro gcc compiler optimization bug.  r=relyea.
Modified Files: pk11db.c pk11pars.h


git-svn-id: svn://10.0.0.236/trunk@130008 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-19 03:23:26 +00:00
relyea%netscape.com
41215b834a Make a single softoken which works for both servers and clients depending on configuration.
Add the _PAD functions to the internal database token.


git-svn-id: svn://10.0.0.236/trunk@121683 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 22:04:12 +00:00
ian.mcgreer%sun.com
2f30d58738 * make sure the token cache returns failure in overflow case
* change internal module trust order again, builtins uses 100, and internal module must come first


git-svn-id: svn://10.0.0.236/trunk@119415 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 19:30:12 +00:00
ian.mcgreer%sun.com
aabd47f4fc try again, the default is 50 so the internal module must be higher
git-svn-id: svn://10.0.0.236/trunk@119414 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 19:19:33 +00:00
ian.mcgreer%sun.com
b9e6962325 make sure the internal module defaults to trust order > 50
git-svn-id: svn://10.0.0.236/trunk@119413 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 19:01:45 +00:00
relyea%netscape.com
8eb6106686 Don't free the temp secmod.db name until we are through using it.
git-svn-id: svn://10.0.0.236/trunk@119044 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-16 00:24:34 +00:00
relyea%netscape.com
db8035c4c3 Add database update capabilities to NSS softoken for multi-access database.
git-svn-id: svn://10.0.0.236/trunk@118490 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-08 23:37:49 +00:00
relyea%netscape.com
c66aee1a15 Multi-access database changes.
git-svn-id: svn://10.0.0.236/trunk@118236 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 09:17:51 +00:00
nelsonb%netscape.com
4d77c9231f On WinCE, DBM's dbopen uses NSPR file open flags rather than libc's
file open flags (which are not defined on WinCE).


git-svn-id: svn://10.0.0.236/trunk@118196 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 03:33:42 +00:00
relyea%netscape.com
a81db5e449 Fix PSM name problem.
Fix crash when trying to access/delete an non-existant object.


git-svn-id: svn://10.0.0.236/trunk@115505 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 21:30:13 +00:00
relyea%netscape.com
e2ffd199c0 When using global params, noCertDB implies noKeyDB as well bug 127312
git-svn-id: svn://10.0.0.236/trunk@115347 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 02:28:21 +00:00
relyea%netscape.com
af84479b7f Set up default trust order correctly.
Default trustorder is
   0 for the internal token
   100 for the builtins
   50 for everyone else

Default Cipher order is
   100 for the internal token
   0 for everyone else


git-svn-id: svn://10.0.0.236/trunk@111760 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 00:59:26 +00:00
relyea%netscape.com
f4994efe5d Startup problems on new profiles: 1) Windows does not initially open the DB R/W
on startup. 2) All platforms do not see the built-ins token if you startup with
a new profile.

Fix: 1) Escape the initialization parameters.
     2) Rebuild the Token iterator when new tokens are added to the trust domain.


git-svn-id: svn://10.0.0.236/trunk@111399 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-05 03:00:10 +00:00
relyea%netscape.com
32ce05f926 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.


git-svn-id: svn://10.0.0.236/trunk@108596 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 18:28:49 +00:00
relyea%netscape.com
d6a02fdc86 NSS 3.4 integration changes.
1) 3.4 needs to bump the version numbers up by one on secmod.db from NSS 3.3
   2) Need to add escapes to the configdirectory. (should add them to other parameters as well.
   3) put exported files back into the correct headers.
   4) Add _BEGIN/_END protos where appropriate.


git-svn-id: svn://10.0.0.236/trunk@108481 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 19:04:59 +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
relyea%netscape.com
61fe26d0b7 Allocate space for the slot count as well.
git-svn-id: svn://10.0.0.236/trunk@103492 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-21 22:53:02 +00:00
relyea%netscape.com
285df75582 1) Fix Solaris, AIX, HP, and Linux warnings. Several were potential real
problems (mostly uninitialized variables in error cases).

2) Start separating softoken from the rest of NSS where appropriate (finish
separating out the key stuff, the cert stuff is coming).

3) Make the prototypes between the new functions consistant.


git-svn-id: svn://10.0.0.236/trunk@103338 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 21:05:53 +00:00
relyea%netscape.com
a85264d923 Fix Modutil delete.
add function to modutil to display raw pkcs #11 module strings


git-svn-id: svn://10.0.0.236/trunk@102447 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:08:44 +00:00
relyea%netscape.com
eaf7d30cd9 1) Add the necessary code so that AddModule functions again.
2) Add code to create secmod.db on the fly again.
3) Fix uninitialized structures so that we can switch to the fips token.

The results of this checkin should allow the fips tests to pass again.


git-svn-id: svn://10.0.0.236/trunk@102047 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 00:20:47 +00:00
relyea%netscape.com
4473c66dd8 Fix Solaris (and probably others) runtime failures:
1) zero out the memory we used to create out module lists so they wind
up null terminated at the end.
	2) fix the lookup code for the secmod.db so that the '=' get properly removed.
	3) turn off attempts to do AddPermDB until we get the encode stuff working.


git-svn-id: svn://10.0.0.236/trunk@101922 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 23:37:22 +00:00
relyea%netscape.com
193baf4505 Land new PKCS #11 initialization code.
git-svn-id: svn://10.0.0.236/trunk@101775 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 21:16:48 +00:00