Commit Graph

6197 Commits

Author SHA1 Message Date
wtchang%redhat.com
98af12d8cd Bugzilla Bug 355297: added new function RNG_SystemRNG, which gets random
bits from the system RNG, and use it for the very first RNG_RandomUpdate
call in rng_init so that we initialize the RNG's XKEY with high quality
entropy. r=jpierre,relyea.
Modified Files:
	os2_rand.c prng_fips1861.c secrng.h unix_rand.c win_rand.c


git-svn-id: svn://10.0.0.236/trunk@213528 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-12 02:23:49 +00:00
wtchang%redhat.com
cc87f26483 Bugzilla Bug 354900: code cleanup -- consolidates some duplicate code,
checks for NULL pointers, and renames the SFTK_IS_SECURE_KEY_OBJECT macro.
r=glen.beasley,relyea.
Modified files: fipsaudt.c fipstokn.c


git-svn-id: svn://10.0.0.236/trunk@213464 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-10 22:28:48 +00:00
kaie%kuix.de
9b2d5803d5 Bug 328346, Certificates with keyusage nonRepudiation should not be used as SSL client certificates
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@213386 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-10 02:04:40 +00:00
alexei.volkov.bugs%sun.com
ac4cda8594 353908: klocwork OOM crash in tdcache.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213370 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:29:12 +00:00
alexei.volkov.bugs%sun.com
44daacbbca 353903: klocwork oom crash in softoken/keydb.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213368 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:28:07 +00:00
alexei.volkov.bugs%sun.com
5f7cf266e5 353888: klockwork IDs for ssl3con.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213367 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:26:44 +00:00
alexei.volkov.bugs%sun.com
4718219a29 353777: Klocwork Null ptr dereferences in pk11obj.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213366 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:25:36 +00:00
alexei.volkov.bugs%sun.com
153831b28d 353773: klocwork Null ptr dereferences in pk11nobj.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213365 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:24:18 +00:00
alexei.volkov.bugs%sun.com
eb8d80ff39 353760: klocwork null pointer dereference in p7decode.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213364 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:22:33 +00:00
alexei.volkov.bugs%sun.com
8c0a5e318a 353742: klocwork null ptr dereferences in pki3hack.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213363 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:21:41 +00:00
alexei.volkov.bugs%sun.com
d479dc7f9d 353742: klocwork null ptr dereference in ocsp_DecodeResponseBytes. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213362 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:19:58 +00:00
alexei.volkov.bugs%sun.com
ba802c8e26 353741: klocwork cascading memory leak in mpp_make_prime. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213361 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:18:38 +00:00
alexei.volkov.bugs%sun.com
643452e4a7 353739: Klocwork Null ptr dereferences in instance.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213360 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:16:59 +00:00
alexei.volkov.bugs%sun.com
4197f301a0 353423: Klocwork bugs in nss/lib/pk11wrap/dev3hack.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213359 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:14:04 +00:00
alexei.volkov.bugs%sun.com
60d825a9a6 353416: Klocwork 76593 null ptr deref in nssCryptokiPrivateKey_SetCertificate. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213358 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:11:44 +00:00
alexei.volkov.bugs%sun.com
de71adc5ae 353375: Klocwork 76513 - Null ptr deref in nssCertificateList_DoCallback. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213355 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 18:51:55 +00:00
alexei.volkov.bugs%sun.com
d3b79bf6f0 353371: Klocwork 91117 - Null Pointer Dereference in CERT_CertChainFromCert. r=nelson
git-svn-id: svn://10.0.0.236/trunk@213354 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 18:45:02 +00:00
alexei.volkov.bugs%sun.com
71f89d51a7 338226: Core files may be reported in the wrong tests for SSL, or missed. r=neil
git-svn-id: svn://10.0.0.236/trunk@213352 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 17:42:58 +00:00
wtchang%redhat.com
ae772079cd Bugzilla Bug 354565: improved an error message as suggested by Neil
Williams.


git-svn-id: svn://10.0.0.236/trunk@213270 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-06 23:50:48 +00:00
wtchang%redhat.com
0730ab6daa Bugzilla Bug 115951: libfreebl3.dylib should be built as a loadable bundle
just like libnssckbi.dylib because it is only dynamically loaded.  We don't
have the import library freebl3.lib on Windows either. r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@213269 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-06 23:45:39 +00:00
wtchang%redhat.com
a540bc2716 Bugzilla Bug 354900: audit the modifications, accesses, deletions, and
additions of cryptographic keys.  r=glen.beasley,relyea.
Modified files: fipstokn.c manifest.mn pkcs11c.c softoken.h
Added file: fipsaudt.c


git-svn-id: svn://10.0.0.236/trunk@213032 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 22:48:31 +00:00
wtchang%redhat.com
8e60bcc17d Bugzilla Bug 351482: fail if some of the needed functions don't exist.
r=glen.beasley,relyea.


git-svn-id: svn://10.0.0.236/trunk@213024 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 22:04:33 +00:00
julien.pierre.bugs%sun.com
a030f3283d Fix for bug 115951 . Separate BL_Cleanup and BL_Unload . r=wtchang,nelson
git-svn-id: svn://10.0.0.236/trunk@213017 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 21:17:59 +00:00
kaie%kuix.de
aaf700dfb9 Bug 344817, PSM: fix UI display problems for X.509 certs with empty DNs
Patch for GetWindowTitle, contributed by Kaspar Brand
r=kengert


git-svn-id: svn://10.0.0.236/trunk@213012 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 20:16:23 +00:00
kaie%kuix.de
f78e16a362 Bug 352867, Cert Manager shows incorrect cert names if any twisty is closed
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@213011 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 20:11:49 +00:00
kaie%kuix.de
6d8a78cf64 Bug 352401, Cert Manager: If issuer org is empty, fall back to display common name
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@213009 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 20:06:27 +00:00
nelson%bolyard.com
781cba6bae Bug 353475. When building NSS with MSVC 2005, use the "mt" command to
embed the manifest files into the executables and DLLs.
Patch contributed by Allan Beaufour <allan@beaufour.dk>, r=nelson,wtchang


git-svn-id: svn://10.0.0.236/trunk@212951 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-01 06:48:25 +00:00
nelson%bolyard.com
4b64df3d21 Bug 354384. Fix some (not all) of the reference leaks in vfyserv.
Also, improve usage message.  r=alexei,julien


git-svn-id: svn://10.0.0.236/trunk@212948 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-01 05:47:18 +00:00
nelson%bolyard.com
637a083330 Bug 354313. Fix leak in STAN_GetCERTCertificateName. r=julien,rrelyea
git-svn-id: svn://10.0.0.236/trunk@212946 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-01 05:37:24 +00:00
alexei.volkov.bugs%sun.com
6e03ca6609 353413: Klocwork 76541 free uninitialized pointer in CERT_FindCertURLExtension. r=nelson
git-svn-id: svn://10.0.0.236/trunk@212884 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 20:20:21 +00:00
alexei.volkov.bugs%sun.com
8b65d799f1 353374: Klocwork 76494 - Null ptr derefs in CERT_FormatName. r=nelson
git-svn-id: svn://10.0.0.236/trunk@212883 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 20:18:55 +00:00
alexei.volkov.bugs%sun.com
ec174298df 341114: Coverity 517 SECU_ParseCommandLine leaks optstate. r=nelson
git-svn-id: svn://10.0.0.236/trunk@212882 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 20:15:47 +00:00
alexei.volkov.bugs%sun.com
48aae2a9f3 354403:: nssList_CreateIterator returns pointer to a freed memory if the function fails to allocate a lock. r=nelson
git-svn-id: svn://10.0.0.236/trunk@212881 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 20:13:30 +00:00
alexei.volkov.bugs%sun.com
86596aa4d6 354008: klocwork bugs in freebl. r=nelson
git-svn-id: svn://10.0.0.236/trunk@212880 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 20:12:21 +00:00
alexei.volkov.bugs%sun.com
73213094ca 321600: SECMOD_LoadPKCS11Module calls to PR_GetLibraryName must use PR_FreeLibraryName. r=wtchang. Patch provided by timeless.
git-svn-id: svn://10.0.0.236/trunk@212878 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 19:53:07 +00:00
alexei.volkov.bugs%sun.com
a44df5ae20 314178: NSS PK11 Module: certificates with unknown AlgorythmIdentifiers make ThunderBird crashed. r=nelson, sr=julien
git-svn-id: svn://10.0.0.236/trunk@212877 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 19:38:42 +00:00
kaie%kuix.de
3ac2e3e15a Bug 326159, enhance cert request generation using KEYGEN tag and JS function crypto.generateCRMFRequest
r=rrelyea
Portions of this patch originally appeared in bug 235773 and were contributed by Sheueling Chang / Vipul Gupta / Douglas Stebila


git-svn-id: svn://10.0.0.236/trunk@212846 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 00:50:46 +00:00
kaie%kuix.de
a54a420fe9 Bug 307319, Certificate details show incorrect public key information
r=rrelyea
Patch contributed by Martin v. Loewis


git-svn-id: svn://10.0.0.236/trunk@212844 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-28 23:31:34 +00:00
kaie%kuix.de
5994afe4a4 Bug 350200, Implement DHMAC based POP (ProofOfPossession)
r=rrelyea, r=nelson


git-svn-id: svn://10.0.0.236/trunk@212838 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-28 22:29:07 +00:00
wtchang%redhat.com
f12ff1258b Bugzilla Bug 354565: detect SHA tests that are incorrectly configured for
BIT oriented implementations. r=glen.beasley


git-svn-id: svn://10.0.0.236/trunk@212803 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-28 16:37:25 +00:00
julien.pierre.bugs%sun.com
50720ed113 Fix for bug 115951 . Unload freebl dynamic library . Also fix tiny one-time leak of library name . r=nelson,wtchang
git-svn-id: svn://10.0.0.236/trunk@212769 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-28 00:40:55 +00:00
kaie%kuix.de
a9862bdc5c Bug 337087, Coverity 406, dead code in mozilla/security/manager/ssl/src/nsSDR.cpp
r=kengert
Patch provided by Jon Smirl


git-svn-id: svn://10.0.0.236/trunk@212442 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-27 03:19:46 +00:00
julien.pierre.bugs%sun.com
2579a4d65f Fix for bug 353910 . Memory leak in RNG_RNGInit . r=nelson, wtchang
git-svn-id: svn://10.0.0.236/trunk@212415 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-26 22:20:18 +00:00
julien.pierre.bugs%sun.com
3500a18aff Fix for bug 351897 . OCSP check should only be skipped for certificateStausResponder usage alone .
git-svn-id: svn://10.0.0.236/trunk@212397 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-26 20:18:57 +00:00
kaie%kuix.de
dd2b511afd Bug 353422, Klocwork bugs in nss/lib/crmf
r=nelson, r=rrelyea
Patch inspired by Nelson


git-svn-id: svn://10.0.0.236/trunk@212394 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-26 18:58:22 +00:00
kaie%kuix.de
fa6a2fac0f Bug 344812, string ID typo in CertViewer: fix display of KU_CRL_SIGN key usage bit
r=kengert
Patch provided by Kaspar Brand


git-svn-id: svn://10.0.0.236/trunk@212393 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-26 18:47:05 +00:00
kaie%kuix.de
b27ad560ef Bug 353597, Process events while waiting for OCSP result on main thread
r=darin
Thanks a lot to Christian Biesinger for making me aware of this solution.
Thanks a lot to Darin Fisher for rewriting thread manager that provides the new API.


git-svn-id: svn://10.0.0.236/trunk@212390 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-26 17:52:56 +00:00
nelson%bolyard.com
7d77e47dd0 Fix build bustage caused by previous checkin.
git-svn-id: svn://10.0.0.236/trunk@212334 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-25 21:46:06 +00:00
julien.pierre.bugs%sun.com
b897db98b9 Fix for bug 353896 . Assert at compile time if NSS_ECC_MORE_THAN_SUITE_B is set. For NSS_3_11_BRANCH and tip. r=nelson, alexei
git-svn-id: svn://10.0.0.236/trunk@212332 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-25 20:51:11 +00:00
nelson%bolyard.com
bc79ebd721 Unifdef USE_MOZ_THREAD (bug 351510) and remove dead code (bug 351443).
Patch contributed by ehsan.akhgari@gmail.com. r=nelson, alexei.volkov
Modified Files: jarint.h jarsign.c jarver.c manifest.mn
Removed Files: jarevil.c jarevil.h


git-svn-id: svn://10.0.0.236/trunk@212321 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-25 19:45:40 +00:00