84 Commits

Author SHA1 Message Date
wtc%google.com
712dfe7374 Bug 495365: The 'nickname' parameter of SEC_CertNicknameConflict should be
a const char *.  r=nelson.
Modified Files:
	certdb.h stanpcertdb.c


git-svn-id: svn://10.0.0.236/trunk@257303 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 19:16:54 +00:00
nelson%bolyard.com
8060804dc4 Bug 464088: Option to build NSS without dbm (handy for WinCE), r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@255302 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 23:24:53 +00:00
wtc%google.com
6042c5e071 Bug 456036: The stubs for deprecated functions should set the
PR_NOT_IMPLEMENTED_ERROR error before returning failure.  r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@254335 18797224-902f-48f8-a5cc-f745e15eee43
2008-09-20 01:10:04 +00:00
nelson%bolyard.com
fd04713a60 Bug 448200. fix systemic misspellings of deprecated and function, r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@253374 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-04 22:32:17 +00:00
wtc%google.com
4b9b8481f8 Bug 434187: merged nssCertificateStore_Check into
nssCertificateStore_Unlock because these two functions were always called
together.  r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@252144 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-06 01:19:31 +00:00
wtc%google.com
dd1ffe05f6 Bug 419523: Export Cert_NewTempCertificate. Remove unnecessary inclusions
of nssrenam.h.  Remove functions that no longer need to be renamed from
nssrenam.h.  r=rrelyea.
Modified Files:
	cmd/vfychain/vfychain.c lib/certdb/stanpcertdb.c
	lib/crmf/asn1cmn.c lib/crmf/cmmfrec.c lib/crmf/respcmn.c
	lib/nss/nss.def lib/nss/nssrenam.h lib/pkcs12/p12e.c
	lib/pkcs7/certread.c lib/pkcs7/p7decode.c lib/pkcs7/p7encode.c
	lib/smime/cmsutil.c lib/ssl/ssl3con.c lib/ssl/ssl3ecc.c
	lib/ssl/sslnonce.c lib/ssl/sslsnce.c


git-svn-id: svn://10.0.0.236/trunk@247455 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-10 00:01:28 +00:00
julien.pierre.boogz%sun.com
29443dfc70 Fix for bug 403240 - threads hanging in nss_InitLock . r=wtc,nelson
git-svn-id: svn://10.0.0.236/trunk@245810 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-16 04:38:09 +00:00
julien.pierre.boogz%sun.com
3b557e654d Fix for bug 353577 . Delete PURE_STAN code and code outside NSS_3_4_CODE . r=wtc,nelson
git-svn-id: svn://10.0.0.236/trunk@239526 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-16 05:29:27 +00:00
rrelyea%redhat.com
557cb6151c Bug 391291 Implement Shared Database Integrity checks.
r=nelson (plus review from kengert)


git-svn-id: svn://10.0.0.236/trunk@231760 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-09 22:36:20 +00:00
nelson%bolyard.com
a1267b775d Bug 379753. NSS WOrkaround for PSM bug 380091.
Don't let PSM clobber S/MIME profiles for our local user certs. r=rrelyea..


git-svn-id: svn://10.0.0.236/trunk@229950 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-14 06:06:53 +00:00
julien.pierre.bugs%sun.com
b5c661f69d Fix for bug 113323 . Constify some functions. r=nelson
git-svn-id: svn://10.0.0.236/trunk@229672 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 04:47:42 +00:00
alexei.volkov.bugs%sun.com
07e48e520a 353902: klocwork bugs in stanpcertdb.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@214447 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-31 00:24:38 +00:00
julien.pierre.bugs%sun.com
600a141f4c Fix for bug 225525 . Resolve race assigning NSSCertificate fields which leaked memory and slot reference. r=nelson
git-svn-id: svn://10.0.0.236/trunk@208124 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-22 22:54:11 +00:00
nelson%bolyard.com
7aa683b767 Fix race in CERT_NewTempCertificate. Bug 341323. r=julien,rrelyea
git-svn-id: svn://10.0.0.236/trunk@208087 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-22 03:30:14 +00:00
wtchang%redhat.com
674b3349ea Bugzilla Bug 337025: removed more unused or trivially used variables.
r=alexei.volkov,nelson.bolyard.


git-svn-id: svn://10.0.0.236/trunk@196627 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-16 01:57:04 +00:00
alexei.volkov.bugs%sun.com
a71a7d0dd6 Patch contributed by timeless@bemail.org
[Bug 337025] Coverity 411, dead code in mozilla/security/nss/lib/certdb/stanpcertdb.c. r=nelson


git-svn-id: svn://10.0.0.236/trunk@196582 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-15 20:39:38 +00:00
julien.pierre.bugs%sun.com
145d6ac5e1 Fix for bug 311164 . Initialize stan cert store object early to fix a race condition. r=nelson
git-svn-id: svn://10.0.0.236/trunk@193801 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 05:49:04 +00:00
nelsonb%netscape.com
69c8d2d723 When attempting to find an SMIME profile for a given email address,
firt ensure that the email address is not NULL and not empty.
Bugzilla bug 263596. r=wan-teh.
Modified Files: lib/certdb/stanpcertdb.c lib/pk11wrap/pk11nobj.c


git-svn-id: svn://10.0.0.236/trunk@166165 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-02 21:34:15 +00:00
relyea%netscape.com
cb8fbb0164 Bug 250687
NSS Crashes or leaks Cert references if bad certs are passed up by PKCS #11 modules.
r=nelson
sr=ian


git-svn-id: svn://10.0.0.236/trunk@159599 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 18:18:05 +00:00
nelsonb%netscape.com
464c8d0e9b Don't crash when CERT_DestroyCertificate is called with a cert with a
null arena pointer.  Bug 245943. r=julien


git-svn-id: svn://10.0.0.236/trunk@157647 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 07:47:51 +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
nelsonb%netscape.com
0bd0446c75 Fix numerous bugs in CERT_FindCertByKeyID. Bug 233019. r=jpierre
git-svn-id: svn://10.0.0.236/trunk@152284 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 08:54:06 +00:00
nelsonb%netscape.com
591abc4303 Detect duplicate issuer name and serial number between two temp certs.
Bug 230996. r=ian, relyea.


git-svn-id: svn://10.0.0.236/trunk@151676 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 02:36:53 +00:00
nelsonb%netscape.com
1b2d6975c1 __CERT_AddTempCertToPerm will now set error SEC_ERROR_ADDING_CERT
when attempting to make a cert perm that is already permanent.
Bugzilla bug 227559. r=wtc


git-svn-id: svn://10.0.0.236/trunk@150100 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-06 06:46:27 +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
nelsonb%netscape.com
9cebade4f2 Eliminate a cert leak. Patch is Bob Relyea's.
Parial fix for Bugscape bug 53573.


git-svn-id: svn://10.0.0.236/trunk@149165 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 21:45:48 +00:00
jpierre%netscape.com
45ea31cac4 Fix for bug 141882 - convert email query keys to lowercase when searching . r=wtc
git-svn-id: svn://10.0.0.236/trunk@147450 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-30 02:33:40 +00:00
ian.mcgreer%sun.com
e26258fd38 bug 174200, don't attempt to decode cert when destroying it, handle failure
to decode cert serial number
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@137945 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-18 20:53:14 +00:00
relyea%netscape.com
1d0c8ab8f4 Create profiles for all the email addresses in a certificate.
git-svn-id: svn://10.0.0.236/trunk@135034 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 17:14:17 +00:00
ian.mcgreer%sun.com
4a6e624c98 bug 172247, don't allow import of duplicate issuer/serial certs
git-svn-id: svn://10.0.0.236/trunk@134280 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 20:43:15 +00:00
ian.mcgreer%sun.com
ac48db6445 bug 177366, clean up refcounting
r=relyea


git-svn-id: svn://10.0.0.236/trunk@133173 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 18:53:55 +00:00
ian.mcgreer%sun.com
c281b854b0 bug 171198, leak moving temp cert to perm; add force parameter
r=wtc,relyea


git-svn-id: svn://10.0.0.236/trunk@130612 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 21:23:00 +00:00
jpierre%netscape.com
e47cdb034a Fix for 154212
git-svn-id: svn://10.0.0.236/trunk@124916 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:56:16 +00:00
jpierre%netscape.com
fdc7963798 Fix for 154212 - update patch for CERT_SaveSMimeProfile based on Bob's comments
git-svn-id: svn://10.0.0.236/trunk@124907 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:07:39 +00:00
jpierre%netscape.com
080a53305e Fix for 154212 - make CERT_SaveSMimeProfile copy the cert to the database if it comes from an external source
git-svn-id: svn://10.0.0.236/trunk@124144 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 00:18:35 +00:00
ian.mcgreer%sun.com
aeac107432 bug 144309, return value of STAN_GetCERTCertificate not checked
r=wtc


git-svn-id: svn://10.0.0.236/trunk@121875 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 18:05:11 +00:00
relyea%netscape.com
394940b694 Automatically create a NULL email profile for certs with email addresses which
are imported into the internal token.


git-svn-id: svn://10.0.0.236/trunk@120975 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 20:38:59 +00:00
ian.mcgreer%sun.com
2bda604c43 bug 141355, CERT_DecodeDERCertificate is not a safe function for some uses, must be replaced with CERT_NewTempCertificate.
git-svn-id: svn://10.0.0.236/trunk@120556 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 19:00:13 +00:00
ian.mcgreer%sun.com
d8db4158aa bug 138626, remove deleted cert from cache even if references still exist
git-svn-id: svn://10.0.0.236/trunk@119844 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 19:37:30 +00:00
relyea%netscape.com
9cc9d97ae5 Don't crash if we don't find the profile (and thus don't have a slot to free).
git-svn-id: svn://10.0.0.236/trunk@119767 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 22:23:37 +00:00
ian.mcgreer%sun.com
d2b3f9f435 NewTemp has to be matched with AddTempCertToPerm
git-svn-id: svn://10.0.0.236/trunk@119558 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 20:27:52 +00:00
ian.mcgreer%sun.com
9d553c9294 fix bugs in cert import with smart card cache
git-svn-id: svn://10.0.0.236/trunk@119546 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 14:14:44 +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
50406c66c5 Bug 133584: Fix reference leaks which prevent shutdown in NSS and in the tests.
Debug builds can verify correct operation by setting NSS_STRICT_SHUTDOWN, which
will cause an assert if shutdown is called but not all the modules are freed (which
means a slot, key, or cert reference has been leaked).


git-svn-id: svn://10.0.0.236/trunk@118866 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 19:05:21 +00:00
wtc%netscape.com
6b4e8e1a3b Bug 135728: should return SECFailure because the function's return type
is SECStatus.  r=mcgreer.


git-svn-id: svn://10.0.0.236/trunk@118273 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 19:25:48 +00:00
ian.mcgreer%sun.com
e837eb40ac bug 129709, incorrect free of cert->nickname
r=wtc


git-svn-id: svn://10.0.0.236/trunk@116562 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 17:42:02 +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
ian.mcgreer%sun.com
93335b6c5a bug 129370, temp cert trusts and S/MIME profiles may cause crashes
r/a=wtc


git-svn-id: svn://10.0.0.236/trunk@116072 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 20:42:40 +00:00
wtc%netscape.com
3995ddd6d7 Bugzilla bug 128915: the first part of the previous change is not
necessary, so replace it with an assertion.  r=mcgreer.


git-svn-id: svn://10.0.0.236/trunk@115825 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 15:49:33 +00:00
ian.mcgreer%sun.com
a9a015ddaf bug 128915, prevent crash on empty S/MIME profiles
git-svn-id: svn://10.0.0.236/trunk@115752 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 23:19:20 +00:00