5839 Commits

Author SHA1 Message Date
rrelyea%redhat.com
e559b7bb4f Performance tests for ec curves. Test's freebl and pkcs11 interfaces.
git-svn-id: svn://10.0.0.236/trunk@195021 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 01:40:48 +00:00
wtchang%redhat.com
503bb981ba Bugzilla Bug 326754: checked the change back in. We failed the NIST DSA
PQGGen test for some other reason (bug 334533).


git-svn-id: svn://10.0.0.236/trunk@194997 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 21:55:24 +00:00
kaie%kuix.de
b3a84b66f4 Bug 333691, [@ nsSSLThread::requestPoll - nsSSLIOLayerPoll]
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@194977 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 16:21:57 +00:00
kaie%kuix.de
9f1fed3fb4 Bug 333385, [@ nsKeygenThread::UserCanceled]
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@194976 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 16:21:26 +00:00
kaie%kuix.de
4f30b17f91 Bug 333404, freeString is unused DEADCODE in nsCrypto::ImportUserCertificates
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@194975 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 16:21:00 +00:00
kaie%kuix.de
919416f5b8 Bug 333767, nsNSSCertificateDB::AddCertFromBase64 mishandles trust settings
r=darin/kengert


git-svn-id: svn://10.0.0.236/trunk@194974 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 16:20:32 +00:00
nelson%bolyard.com
c74c0d6ec1 Bug 80092: SSL write indicates all data sent when some is buffered.
SSL now follows NSPR socket semantics and never returns a short write
count on a blocking socket.  On a blocking socket, it returns either
the full count or -1 (with an error code set).
For non-blocking sockets, SSL no longer returns a full write count
when some of the data remains buffered in the SSL record layer.
Instead it returns a number is that always at least 1 byte short of a
full write count, so that the caller will  keep retrying until it is done.
SSL makes sure that the first byte sent by the caller in the retry
matches the last byte previously buffered.  r=rrelyea.
Modified Files: ssl3con.c sslcon.c ssldef.c sslimpl.h sslsecur.c


git-svn-id: svn://10.0.0.236/trunk@194962 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 08:46:34 +00:00
nelson%bolyard.com
f31b5a729a Fix buffer overflow regression. Bug 236245. sr=wtchang
git-svn-id: svn://10.0.0.236/trunk@194956 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 06:57:54 +00:00
alexei.volkov.bugs%sun.com
b2c388de76 Patch contributed by timeless@bemail.org
[Bug 334459] Variable "cipherName" tracked as NULL was passed to a
 function that dereferences it. [@ PORT_Strdup - SSL_SecurityStatus]. r=nelson


git-svn-id: svn://10.0.0.236/trunk@194743 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 00:22:58 +00:00
alexei.volkov.bugs%sun.com
e0789a80bf Patch contributed by timeless@bemail.org
[Bug 334446] oom Crash in nssCKFWFindObjects_Create. r=nelson


git-svn-id: svn://10.0.0.236/trunk@194741 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 00:03:51 +00:00
alexei.volkov.bugs%sun.com
626bddd94f Patch contributed by timeless@bemail.org
[Bug 334443] oom Crash in nssCKFWSession_Create. r=nelson


git-svn-id: svn://10.0.0.236/trunk@194738 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 23:50:43 +00:00
alexei.volkov.bugs%sun.com
d9f496bf5a Patch contributed by timeless@bemail.org
[Bug 334438] oom Crash in ReadDBCertEntry. r=nelson


git-svn-id: svn://10.0.0.236/trunk@194736 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 23:43:32 +00:00
alexei.volkov.bugs%sun.com
ffa5cde3ac Patch contributed by timeless@bemail.org
[Bug 334442] Incorrect use of realloc oom Crash in secmod_ReadPermDB;r=nelson


git-svn-id: svn://10.0.0.236/trunk@194729 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 22:55:24 +00:00
alexei.volkov.bugs%sun.com
89aeb8a876 Patch contributed by nelson@bolyard.com.
[Bug 334327] pk11_CreateNewContextInSlot: Variable "(context)->key" tracked as NULL was passed to a function that dereferences it. r=alexei


git-svn-id: svn://10.0.0.236/trunk@194726 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 22:32:30 +00:00
wtchang%redhat.com
b1acfba3d1 Bugzilla bug 334553: use the ULL suffix with unsigned long long constants.
r=douglas.stebila.
Modified files: ecl/ecp_256.c mpi/mp_gf2m.c


git-svn-id: svn://10.0.0.236/trunk@194722 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 22:19:09 +00:00
wtchang%redhat.com
377e2c4373 Bugzilla bug 334683: removed extraneous semicolons. r=alexei.volkov.
Modified files: cmd/certutil/certutil.c lib/pki/pkistore.h


git-svn-id: svn://10.0.0.236/trunk@194687 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 19:04:23 +00:00
julien.pierre.bugs%sun.com
be59ac6228 Fix for bug 331413. Don't set SO_LINGER in the Win95 build to workaround NSPR bug 332348. r=wtchang
git-svn-id: svn://10.0.0.236/trunk@194640 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 22:57:10 +00:00
wtchang%redhat.com
2a579f7d54 Bugzilla Bug 333917: the non-x86 code in at least the DES_CBCEn and
DES_EDE3CBCEn functions violates ANSI C's aliasing rules.  So we compile
this file with strict aliasing rules turned off. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@194608 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 17:33:56 +00:00
timeless%mozdev.org
c532288950 Bug 332324 crash [@ IsChildOfDomWindow]
r=kaie sr=bz


git-svn-id: svn://10.0.0.236/trunk@194482 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-16 20:33:28 +00:00
nelson%bolyard.com
4b89440f12 Don't add 3 to the user-supplied number of validity months. Bug 333679.
r=neil.williams


git-svn-id: svn://10.0.0.236/trunk@194443 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-15 01:00:11 +00:00
julien.pierre.bugs%sun.com
12369d9718 Fix for bug 262375 . Add clobber_dbm and clobber_nspr targets, as well as nss_clean_all . r=nelson
git-svn-id: svn://10.0.0.236/trunk@194438 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-14 22:48:31 +00:00
gavin%gavinsharp.com
e4f3a8142a Bug 331749: chrome://pippki/content/newserver.js is not UTF-8, patch by Philip Withnall <bugzilla@tecnocode.co.uk>, r=kaie
git-svn-id: svn://10.0.0.236/trunk@194422 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-14 19:12:31 +00:00
nelson%bolyard.com
9ecb87a26a big cleanup of error codes returned by pkcs12 library.
No longer returns SEC_ERROR_NO_MEMORY for every possible error code.
Bug 321584. r=neil.williams


git-svn-id: svn://10.0.0.236/trunk@194421 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-14 18:34:44 +00:00
nelson%bolyard.com
782997f209 Fix broken optimized builds, caused by last checkin. Bug 236245.
git-svn-id: svn://10.0.0.236/trunk@194370 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-14 00:43:19 +00:00
nelson%bolyard.com
bafb7f6292 Implement TLS Hello extensions for ECC. Bug 236245. r=rrelyea.
This patch has a known problem, choosing ephemeral ECDH curves
according to the wrong (suboptimal, non-FIPS) criteria.
Modified Files: ssl3con.c ssl3ecc.c sslimpl.h


git-svn-id: svn://10.0.0.236/trunk@194359 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-13 23:08:18 +00:00
nelson%bolyard.com
fc11ad1fed Add and use new -2 option for strsclnt to disable SSL2 compatible client
hellos, so we can stress test TLS hello extensions.  Bug 333559.
r=julien.pierre,rrelyea


git-svn-id: svn://10.0.0.236/trunk@194355 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-13 22:43:31 +00:00
wtchang%redhat.com
9579b868b3 Bugzilla Bug 330114: corrected the checks for the PKCS #1 v1.5 padding
string and the length of the data (hash). r=nelsonb,relyea.


git-svn-id: svn://10.0.0.236/trunk@194349 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-13 22:12:17 +00:00
gijskruitbosch%gmail.com
d834bd05b7 Bug 333692 - Possible crash (Coverity) [@ PK11_DestroyContext - md5sum]
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@194268 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 22:33:52 +00:00
benjamin%smedbergs.us
6e24a5d20a Freeze nsIArray (requires separating nsIMutableArray into another .idl file); also removes NS_NewArray and moves do_QueryElementAt into the glue, r=darin
git-svn-id: svn://10.0.0.236/trunk@194221 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 15:43:32 +00:00
julien.pierre.bugs%sun.com
dec84162f8 Fix for 333657 . Increase maximum RSA key size to 8192 bits in freebl. r=nelson
git-svn-id: svn://10.0.0.236/trunk@194210 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 05:39:01 +00:00
alexei.volkov.bugs%sun.com
d9ffa58799 [Bug 332272] add core detection functionality to all.sh; r=nelson
git-svn-id: svn://10.0.0.236/trunk@194201 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 01:14:27 +00:00
wtchang%redhat.com
9712c7f7a4 Bugzilla Bug 331413: assert that the worker threads empty the jobQ before
they terminate.  Fix a socket leak when the SSL_ImportFD call in
handle_connection fails. r=nelson.bolyard.


git-svn-id: svn://10.0.0.236/trunk@194175 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 21:12:28 +00:00
nelson%bolyard.com
8963b8a82f Implement new API for registering and deregistering shutdown callback functions.
Patch by Bob Relyea and Nelson Bolyard. r=rrelyea,nelson  Bug 326482.


git-svn-id: svn://10.0.0.236/trunk@193920 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-08 05:11:55 +00:00
nelson%bolyard.com
a2bf5d7952 Bug 333090: CKM_DH_PKCS_KEY_PAIR_GEN always fails. r=nelson, sr=rrelyea
Patch contributed by Andreas.Sterbenz@sun.com


git-svn-id: svn://10.0.0.236/trunk@193919 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-08 05:05:01 +00:00
nelson%bolyard.com
f33ea28075 WORKAROUND: disable all the ECDH_RSA cipher suites tests, since all those
tests require a cert with an EC public key and an RSA signature, and the
test scripts do not presently generate such a cert.
This workaround can be backed out when the real fix is available.
Bug 332222. r=neil.williams


git-svn-id: svn://10.0.0.236/trunk@193917 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-08 04:28:32 +00:00
sandeep.konchady%sun.com
f152671ebe Bugzilla bug : 316448. Deprecated references to fortezza in code and test.
sr=glen.beasley


git-svn-id: svn://10.0.0.236/trunk@193814 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 15:56:50 +00:00
kaie%kuix.de
f04215cac3 bug 331648, signed/unsigned bug submitting CRMF cert requests
r=rrelyea, sr=nelson


git-svn-id: svn://10.0.0.236/trunk@193808 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 11:41:18 +00:00
nelson%bolyard.com
d362c8829d Implement generic support for TLS Hello Extensions. Bug 226271. r=vipul
git-svn-id: svn://10.0.0.236/trunk@193802 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 06:24:07 +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
julien.pierre.bugs%sun.com
62e48e70c6 Fix for bug 315793 . Wan-Teh's feedback for PWD
git-svn-id: svn://10.0.0.236/trunk@193791 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 04:10:28 +00:00
cbiesinger%web.de
0ff03c4911 move an unfrozen interface out of SDK_XPIDLSRC (was added there in bug 111384)
git-svn-id: svn://10.0.0.236/trunk@193692 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 14:02:29 +00:00
julien.pierre.bugs%sun.com
28b2ef9bc1 Fix for bug 315793 . Make shlibsign run in the OBJDIR rather than the source directory . r=nelson
git-svn-id: svn://10.0.0.236/trunk@193671 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 06:22:02 +00:00
julien.pierre.bugs%sun.com
645eb0fd8c Fix for bug 315798 . run bltest and rsaperf from source directories in the QA . r=nelson
git-svn-id: svn://10.0.0.236/trunk@193670 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 06:19:41 +00:00
nelson%bolyard.com
a27efac04e Don't negotiate an ECDH_RSA cipher suite when the server's only ECDH cert
has an ECDSA signature.  bug 332350. r=vipul.gupta.


git-svn-id: svn://10.0.0.236/trunk@193659 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 04:40:49 +00:00
julien.pierre.bugs%sun.com
36605e59fd Partial fix for bug 332348 . Add PR_POLL_EXCEPT to a PR_Poll . Allows tstclnt to wake up if server goes away. r=wtchang
git-svn-id: svn://10.0.0.236/trunk@193648 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 01:49:03 +00:00
nelson%bolyard.com
45d3931f83 Fix shell script error that caused undetected QA failures. Bug 311931.
r=nelson.bolyard,alexei.volkov


git-svn-id: svn://10.0.0.236/trunk@193613 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 19:35:47 +00:00
nkwan%redhat.com
849895127c Updated tip to use NSS_3_11_RTM
git-svn-id: svn://10.0.0.236/trunk@193579 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 02:06:31 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
kaie%kuix.de
dfeab526b2 Follow-up checkin to bug 111384, fixes the tinderbox tests failure.
If the thread runner C function calls the pure virtual Run too early,
before the constructor finished, it will crash.
This patch delays thread creation and virtual function call to a
separate startThread call.
Thanks a lot to Jag for his help in finding the problem!
r=jag


git-svn-id: svn://10.0.0.236/trunk@193503 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 13:18:48 +00:00
kaie%kuix.de
e4ab14cd87 bug 111384, Support OCSP requests through a proxy
combined r= by darin / rrelyea
second checkin attempt


git-svn-id: svn://10.0.0.236/trunk@193501 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 13:14:40 +00:00