82 Commits

Author SHA1 Message Date
nelson%bolyard.com
0ac9fd3d80 Bug 469588: Coverity errors reported for softoken, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257465 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 06:28:07 +00:00
julien.pierre.boogz%sun.com
c60c10b0b0 Fix for bug 473505 . softoken's C_Initialize and C_Finalize should succeed after a fork in a child process. r=relyea, nelson
git-svn-id: svn://10.0.0.236/trunk@256055 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 05:34:47 +00:00
nelson%bolyard.com
2ab43f8f49 Bug 439115: DB merge allows nickname conflicts in merged DB
patch by rrelyea and nelson, r=alexei.volkov


git-svn-id: svn://10.0.0.236/trunk@255355 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 05:02:20 +00:00
nelson%bolyard.com
38e223d164 Back out the patch for Bug 439115. It caused test failures on Unix.
git-svn-id: svn://10.0.0.236/trunk@255327 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 22:39:35 +00:00
nelson%bolyard.com
6736881f7a Bug 439115: DB merge allows nickname conflicts in merged DB
Patch by Bob Relyea <rrelyea@redhat.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@255321 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 08:04:42 +00:00
wtc%google.com
1086580bc1 Bug 434187: fixed the comments in sftk_DeleteObject. r=rrelyea.
git-svn-id: svn://10.0.0.236/trunk@253826 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-25 22:10:14 +00:00
rrelyea%redhat.com
76c9a9f4d2 bug 279042 First performance improvement patch for shared db.
r=neil


git-svn-id: svn://10.0.0.236/trunk@234078 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-06 20:47:34 +00:00
julien.pierre.bugs%sun.com
65ca6611b4 Fix for bug 387052 . Avoid an OOM crash in softoken . r=nelson,alexei
git-svn-id: svn://10.0.0.236/trunk@229633 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 22:41:12 +00:00
rrelyea%redhat.com
13fa0b6c19 Bug 217538 Add shared database to nss.
core Checking.


git-svn-id: svn://10.0.0.236/trunk@227936 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-13 00:24:57 +00:00
nelson%bolyard.com
afd3149000 Bug 364684. Fix session object handle counter overflows. r=rrelyea,wtchang
git-svn-id: svn://10.0.0.236/trunk@218100 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-10 04:47:57 +00:00
alexei.volkov.bugs%sun.com
80d9da6a36 [Bug 333389] sftk_NewAttribute should not crash when so is NULL [@ sftk_NewAttribute]. r=nelson
git-svn-id: svn://10.0.0.236/trunk@195453 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 19:19:07 +00:00
alexei.volkov.bugs%sun.com
41df12217a [Bug 334277] double free in [@ sftk_FreeAttribute - sftk_DeleteAttributeType]. r=relyea
git-svn-id: svn://10.0.0.236/trunk@195326 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-25 02:34:01 +00:00
rrelyea%redhat.com
7737de0a17 Bugzilla Bug 326482 NSS ECC performance problems.
r=nelsonb
Fix bug where ECC keys were not being copied on server startup


git-svn-id: svn://10.0.0.236/trunk@189563 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 18:54:58 +00:00
relyea%netscape.com
f69a8f7b0f bug 305697: open additional database on the fly in softoken. part1: softoken changes.
r=julien


git-svn-id: svn://10.0.0.236/trunk@181156 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-28 17:12:17 +00:00
wtchang%redhat.com
4b51894d24 Bugzilla Bug 289530: fixed signed/unsigned comparison compiler warnings.
Fixed compilation errors of new ECC code added in the previous checkin.
r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@177781 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 21:23:39 +00:00
nelsonb%netscape.com
520cc33a7a NSC_CopyObject can now copy token keys to session keys. Bug 289530.
r=rrelyea. Modified Files: pkcs11.c pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@177049 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-03 02:26:55 +00:00
julien.pierre.bugs%sun.com
cc43cd5f11 Fix gcc compiler warning
git-svn-id: svn://10.0.0.236/trunk@171623 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-05 00:55:55 +00:00
nelsonb%netscape.com
942609106d Rename all internal private softoken functions types and symbols from
PK11 or pk11 prefixes to SFTK or sftk prefixes.  Bug 286685.
r=relyea,wtchang  Modified Files:
 cmd/bltest/blapitest.c lib/pk11wrap/pk11pars.c lib/softoken/dbinit.c
 lib/softoken/dbmshim.c lib/softoken/fipstest.c lib/softoken/fipstokn.c
 lib/softoken/pcertdb.c lib/softoken/pk11db.c lib/softoken/pk11pars.h
 lib/softoken/pkcs11.c lib/softoken/pkcs11c.c lib/softoken/pkcs11i.h
 lib/softoken/pkcs11u.c lib/softoken/softoken.h lib/softoken/tlsprf.c


git-svn-id: svn://10.0.0.236/trunk@171326 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-29 18:21:18 +00:00
wtchang%redhat.com
4867486020 Bugzilla Bug 286439: Removed PKCS11_USE_THREADS and PK11_USE_THREADS.
r=relyea,nelsonb.
Modified Files:
	pk11wrap/pk11list.c pk11wrap/pk11pars.c pk11wrap/pk11skey.c
	pk11wrap/pk11slot.c pk11wrap/pk11util.c pk11wrap/secmod.h
	pk11wrap/secmodi.h pk11wrap/secmodt.h pk11wrap/secmodti.h
	softoken/pkcs11.c softoken/pkcs11i.h softoken/pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@171277 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-28 20:45:37 +00:00
wtchang%redhat.com
762e81f2b6 Bugzilla Bug 286318: performance optimization: save the result of
PK11_SESSION_LOCK in a local variable and reuse the result. r=nelsonb.
Modified Files: pkcs11.c pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@170791 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-16 19:24:45 +00:00
wtchang%redhat.com
65e2db1158 Bugzilla Bug 286298: comment formatting changes only.
Modified Files: pkcs11i.h pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@170789 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-16 19:02:04 +00:00
wtchang%redhat.com
5be6e2784c Bugzilla Bug 286298: removed the PKCS11_STATIC_ATTRIBUTES and
PKCS11_REF_COUNT_ATTRIBUTES macros, supporting only one of the three
attribute allocation strategies (static allocation). r=jpierre.
Modified Files: pkcs11i.h pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@170788 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-16 18:48:34 +00:00
julien.pierre.bugs%sun.com
c3bc4d56dd Fix for bug 270689 . minor issues remaining with list cleanup and on-the-fly lock creation
git-svn-id: svn://10.0.0.236/trunk@170367 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 05:55:29 +00:00
julien.pierre.bugs%sun.com
ef57d8f9dc Fix for bug 270689 - race condition in softoken list lock creation . r=nelson
git-svn-id: svn://10.0.0.236/trunk@166425 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-08 01:13:54 +00:00
julien.pierre.bugs%sun.com
cb5cbee168 Fix for bug 262192 . assert and check attribute ptr
git-svn-id: svn://10.0.0.236/trunk@164293 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-24 18:31:27 +00:00
ian.mcgreer%sun.com
f7fd7e85b4 bug 180268, reimplement ssl step-up for builtins
git-svn-id: svn://10.0.0.236/trunk@156475 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-17 20:08:38 +00:00
gerv%gerv.net
43cb9e1492 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155484 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-25 15:03:26 +00:00
relyea%netscape.com
13f5459a8e bug 231698: fix regression in reading SDR data in databases written on 64-bit platforms.
r=MisterSSL


git-svn-id: svn://10.0.0.236/trunk@151910 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 18:31:29 +00:00
wchang0222%aol.com
aa48f52f9b Bugzilla bug 229289: fixed an unused variable warning. r=relyea.
git-svn-id: svn://10.0.0.236/trunk@151241 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 01:59:41 +00:00
nelsonb%netscape.com
91eaa1ae03 NSC_Finalize will now destroy 3 softoken free lists and one more
global pointer.  Plugs some memory leaks.  Bugscape bug 54301. r=wtc


git-svn-id: svn://10.0.0.236/trunk@150099 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-06 06:41:51 +00:00
nelsonb%netscape.com
15b7b08f9e Detect empty emailAddr strings in CERTCertificates. Bugzilla bug 211540.
Modified Files:
    cmd/dbck/dbck.c cmd/signtool/util.c lib/certdb/certdb.c
    lib/certdb/stanpcertdb.c lib/pkcs7/p7decode.c lib/pki/certificate.c
    lib/pki/pki3hack.c lib/smime/cmssiginfo.c lib/softoken/pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@149330 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 00:10:01 +00:00
relyea%netscape.com
419d66af8a Changes for symkey support.
git-svn-id: svn://10.0.0.236/trunk@149283 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:25:52 +00:00
relyea%netscape.com
0d72b0de0c Verify Parameters from the user before passing it on to freebl. r=nelson
git-svn-id: svn://10.0.0.236/trunk@148950 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-07 03:38:59 +00:00
relyea%netscape.com
1a4caffe99 221067 NSS needs to be able to create token symkeys from unwrap and derive.
git-svn-id: svn://10.0.0.236/trunk@148092 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-18 00:38:04 +00:00
ian.mcgreer%sun.com
decc84df49 ECC code landing.
Contributed by Sheuling Chang, Stephen Fung, Vipul Gupta, Nils Gura,
and Douglas Stebila of Sun Labs


git-svn-id: svn://10.0.0.236/trunk@148060 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-17 13:45:42 +00:00
ian.mcgreer%sun.com
7d142f8218 bug 202838, move operations outside of slot->objectLock
r=relyea


git-svn-id: svn://10.0.0.236/trunk@142459 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 22:09:03 +00:00
relyea%netscape.com
0595879250 bug 162976: make crl update atomic. Set up new Crl with a new Object ID which is different from the old one.
git-svn-id: svn://10.0.0.236/trunk@138884 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 22:36:27 +00:00
relyea%netscape.com
d4e4d8b22a db8 code part 1:
1) Create new dbs with 32 k buffers.
   2) New dbs never store a single entry greater than 30 k (those are stored
using the blob code).
   3) NSS can run with either new or old dbs read only.
   4) If possible a new db is upgraded from and old db.


git-svn-id: svn://10.0.0.236/trunk@132934 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-04 19:31:59 +00:00
jpierre%netscape.com
0625b2d3eb Fix for 167615 - don't crash if the CRL isn't found due to a database error
git-svn-id: svn://10.0.0.236/trunk@130483 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 01:37:41 +00:00
wtc%netscape.com
16ce983004 Bugs 166734 and 166785: fixed compiler warnings reported by gcc on Linux.
The patch for this checkin is attached to bug 166785.


git-svn-id: svn://10.0.0.236/trunk@128926 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 00:27:52 +00:00
relyea%netscape.com
644db95e59 Remove warning for unreferenced variable.
git-svn-id: svn://10.0.0.236/trunk@128169 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 21:39:49 +00:00
relyea%netscape.com
2568cdbc41 Fix URL check. we should check crl->url for null, not the uninitialized variable url.
git-svn-id: svn://10.0.0.236/trunk@128108 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 16:27:49 +00:00
relyea%netscape.com
8f6655a693 handle attribute types more intellegently. Don't fetch the object for invalid attributes if we don't have to.
git-svn-id: svn://10.0.0.236/trunk@127919 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-23 02:11:03 +00:00
relyea%netscape.com
9ec384d361 1) fix crl memory.
2) remove several memory copies in the crl.


git-svn-id: svn://10.0.0.236/trunk@127738 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-21 00:09:23 +00:00
relyea%netscape.com
48c6b9c1ce Automatically recover from database corruptions when importing new certs.
git-svn-id: svn://10.0.0.236/trunk@125299 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 16:44:22 +00:00
relyea%netscape.com
52ca8acde6 Update the CERTDB_USER bits when our key gets imported through pkcs #12.
git-svn-id: svn://10.0.0.236/trunk@125064 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 03:27:44 +00:00
relyea%netscape.com
559d453790 Handle the case where we don't get the Token object from NewToken (It gets converted from a session object in handleobjects).
git-svn-id: svn://10.0.0.236/trunk@124523 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 19:58:49 +00:00
relyea%netscape.com
ff3a4be02e More performance improvements in listing certs:
1) reduce more short term memory allocate/frees.
	2) remove sha1 hash calculations from critical paths.
	3) when listing user certs, skip decoding of non-user certs.


git-svn-id: svn://10.0.0.236/trunk@124499 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 15:11:29 +00:00
relyea%netscape.com
aa413cb2ba More performance improvements for PK11ListCerts/ CERT_GetUserCertByUsage().
git-svn-id: svn://10.0.0.236/trunk@123953 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:54:41 +00:00
relyea%netscape.com
d80230e4aa Patches to reduce the cost of getting attributes on certs or finding certs in lists.
git-svn-id: svn://10.0.0.236/trunk@123699 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 18:46:47 +00:00