3668 Commits

Author SHA1 Message Date
nelsonb%netscape.com
4e73e3abe9 Fix broken build, caused by c++ style comment in c code.
git-svn-id: svn://10.0.0.236/trunk@188383 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-28 02:38:07 +00:00
nelsonb%netscape.com
5f09451b56 Set SSL2 and SSL3 timeout times properly for SSL server session cache.
Bug 223242. r=jullien.pierre


git-svn-id: svn://10.0.0.236/trunk@188382 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-28 02:21:31 +00:00
glen.beasley%sun.com
860e7e5f8e 328967 DSA FIPS tests r=Wan-Teh
git-svn-id: svn://10.0.0.236/trunk@188355 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-27 18:53:07 +00:00
wtchang%redhat.com
9731576fbf Removed a blank line that broke the ssl_stress function in ecssl.sh, which
cannot handle blank lines.


git-svn-id: svn://10.0.0.236/trunk@188354 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-27 18:44:13 +00:00
wtchang%redhat.com
0595eaf565 Bugzilla Bug 320589: temporary workaround for SEC_SignData ECDSA signature
generation bug introduced by the previous checkin.


git-svn-id: svn://10.0.0.236/trunk@188288 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 23:51:42 +00:00
wtchang%redhat.com
edf6204f51 Removed an extraneous semicolon after the last parameter in a function
declaration.


git-svn-id: svn://10.0.0.236/trunk@188283 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 23:21:39 +00:00
nelsonb%netscape.com
a934662573 Remove unnecessary ISALIST test from sparc versions of freebl DSOs.
Bug 302658. r=jullien.pierre,wtchang


git-svn-id: svn://10.0.0.236/trunk@188000 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-22 08:43:57 +00:00
nelsonb%netscape.com
c2795a63dc Make dbck Debug mode work with Softoken. Bug 323570. r=rrelyea.
git-svn-id: svn://10.0.0.236/trunk@187998 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-22 06:54:34 +00:00
nelsonb%netscape.com
c3738b9726 Don't use variables as structure initializers. Bug 274512. Fix build
on HPUX.  r=julien.pierre,wtchang


git-svn-id: svn://10.0.0.236/trunk@187997 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-22 06:42:14 +00:00
nelsonb%netscape.com
3cc722f057 Detect certdb reference leaks at shutdown with assertions. Bug 324103.
r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@187996 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-22 06:36:36 +00:00
wtchang%redhat.com
c5e5443a41 Bugzilla Bug 323977: use the "mapfile" (ld version script) on FreeBSD.
Build the freebl shared libraries with the -Bsymbolic flag for GNU ld.
r=nelsonb.  Thanks to Glenn Randers-Pehrson <glennrp@imagemagick.org> for
reporting this bug and verifying these changes.
Modified files: coreconf/FreeBSD.mk nss/lib/freebl/Makefile


git-svn-id: svn://10.0.0.236/trunk@187948 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-21 02:33:33 +00:00
nelsonb%netscape.com
40aaf20256 Plug a cert DB reference leak in softoken, related to trust objects.
Bug 324103, r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@187945 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-21 02:23:42 +00:00
wtchang%redhat.com
e62ba399ff Bugzilla Bug 320589: miscellaneous code cleanup: distinguish between the
length of the field size and the length of the base point order.  Report
better error codes.  In ECDSA_VerifyDigest, removed unnecessary local
variables and be lenient in the signature lengths we accept.
r=relyea,nelsonb


git-svn-id: svn://10.0.0.236/trunk@187942 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-21 02:14:46 +00:00
julien.pierre.bugs%sun.com
f7dec9cf20 Fix for bug 317856 . uninitialized variable correction. r=wtchang
git-svn-id: svn://10.0.0.236/trunk@187923 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-20 22:55:35 +00:00
nelsonb%netscape.com
d6b69e6906 Detect NULL server key pair pointer. Bug 321161. r=wtchang.
git-svn-id: svn://10.0.0.236/trunk@187904 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-20 17:40:21 +00:00
julien.pierre.bugs%sun.com
f6b94accfe Fix for bug 317856 . compiler warnings in strsclnt
git-svn-id: svn://10.0.0.236/trunk@187862 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-20 00:43:23 +00:00
rrelyea%redhat.com
3df22f1c88 Bugzilla Bug 95323. Conditionally compile nsscapi.
r=julien


git-svn-id: svn://10.0.0.236/trunk@187832 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 19:55:28 +00:00
nelsonb%netscape.com
2cc2f6a9f7 change QA test order to be bottom-up. Bug 309412. r=jullien.pierre
git-svn-id: svn://10.0.0.236/trunk@187823 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 11:59:56 +00:00
nelsonb%netscape.com
fce260a827 Back out last change, which broke the build.
git-svn-id: svn://10.0.0.236/trunk@187808 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 02:34:12 +00:00
nelsonb%netscape.com
264d4bfdd4 Prevent crash when making new cert8.db from old cert5.db.
This is not the final solution, but it works.
Bug 320029. r=rrelyea,sr=julien.pierre.  On TRUNK.


git-svn-id: svn://10.0.0.236/trunk@187807 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 02:16:30 +00:00
nelsonb%netscape.com
59a08bda78 Add new function nsslowcert_DecodeAnyDBEntry. Correct the union
certDBEntry by adding the missing members. Bug 323570. r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@187806 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 02:09:37 +00:00
nelsonb%netscape.com
f49b9775c6 Softoken will no longer generate excessive key material for some SSL3
cipher suites.  Bug 274512. r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@187801 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 01:12:53 +00:00
wtchang%redhat.com
9a9352d0f2 Bugzilla Bug 318217: use the new NSPR functions PR_EmulateAcceptRead and
PR_EmulateSendFile added in NSPR 4.1.  r=nelsonb.
Modified files: manifest.mn sslimpl.h sslsock.c
Removed file: emulate.c


git-svn-id: svn://10.0.0.236/trunk@187784 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 23:06:57 +00:00
julien.pierre.bugs%sun.com
59eb9be554 Fix for bug 319495 . Clean up Makefiles for command-line tools. r=nelson
git-svn-id: svn://10.0.0.236/trunk@187780 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 22:44:39 +00:00
wtchang%redhat.com
d1780f18bc Bugzilla Bug 323379: need to set ADDON_PATH for libsoftokn3.so to load
libfreebl3.so as an add-on on BeOS.  Thanks to Doug Shelton
<doug@sheltonfamily.org>for reporting the bug and verifying the fix.
r=christophe.ravel.


git-svn-id: svn://10.0.0.236/trunk@187768 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 20:56:28 +00:00
rrelyea%redhat.com
eb074fa45d NSS ECDSA can only sign SHA-1 bug 320583
r=nelson patch ammended to change SHA-1 to HASH per wtc comment.


git-svn-id: svn://10.0.0.236/trunk@187698 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-17 00:38:59 +00:00
wtchang%redhat.com
3cb9d0e259 Bugzilla Bug 320497: indicate that we don't need an executable stack.
r=wolfgang.rosenauer,jpierre.
Modified files: arcfour-amd64-gas.s mpi/mpi_amd64_gas.s


git-svn-id: svn://10.0.0.236/trunk@187561 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-13 17:33:10 +00:00
alexei.volkov.bugs%sun.com
7e9de6b0be HP and AIX cert extension tests failure fix.
git-svn-id: svn://10.0.0.236/trunk@187536 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-13 07:59:31 +00:00
wtchang%redhat.com
df47d9cf72 Bugzilla Bug 323079: when libsoftoken and libssl load the freebl library,
first try without resolving symlinks.  If we fail to load the library and
the pathname is a symbolic link, resolve the symbolic link and try again.
r=jpierre. sr=relyea.


git-svn-id: svn://10.0.0.236/trunk@187524 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-12 23:46:31 +00:00
alexei.volkov.bugs%sun.com
61d1e373b8 cert extension test for 53229: certutil should not use gets(). julien:review+
git-svn-id: svn://10.0.0.236/trunk@187449 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-12 01:09:03 +00:00
wtchang%redhat.com
19208f3ffa Bugzilla Bug 318968: fixed the build error with NSS_ENABLE_ECC unset.
Modified files: Makefile fipstest.c


git-svn-id: svn://10.0.0.236/trunk@187024 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-05 21:49:05 +00:00
julien.pierre.bugs%sun.com
03e5be5d07 Fix the build busted by checkin for bug 318968
git-svn-id: svn://10.0.0.236/trunk@186513 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-23 03:15:58 +00:00
wtchang%redhat.com
1626f81291 Bugzilla Bug 318968: added FIPS ECDSA algorithm test. r=glen.beasley.
Modified file: fipstest.c
Added file: ecdsa.sh


git-svn-id: svn://10.0.0.236/trunk@186457 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-22 22:22:17 +00:00
wtchang%redhat.com
11aa05109c Bugzilla Bug 318962: combined a PORT_Realloc and a memset call into an
equivalent PORT_ZAlloc call.  r=glen.beasley.


git-svn-id: svn://10.0.0.236/trunk@186454 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-22 22:19:03 +00:00
wtchang%redhat.com
5c0e8ea84c Bugzilla bug 318962: it is legal for PORT_Realloc(oldptr, 0) to return
NULL, so that shouldn't be treated as a memory allocation failure.


git-svn-id: svn://10.0.0.236/trunk@186392 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-22 01:39:17 +00:00
glen.beasley%sun.com
93a4bac354 318958 fixing c++/java comment to C
git-svn-id: svn://10.0.0.236/trunk@186342 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-21 00:31:16 +00:00
glen.beasley%sun.com
7e2278793b 318958 fixing Monte Carlo test r=Wan-Teh
git-svn-id: svn://10.0.0.236/trunk@186340 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-21 00:13:52 +00:00
glen.beasley%sun.com
676848fa8b 318962 buffer fix for SHA Monte Carlo tests r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@186323 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-20 18:20:50 +00:00
wtchang%redhat.com
b76949a7d2 Bugzilla Bug 317052: removed the obsolete file lib/base/whatnspr.c from
CVS.  r=relyea.
Modified Files:
	base.h error.c manifest.mn
Removed Files:
	whatnspr.c


git-svn-id: svn://10.0.0.236/trunk@186275 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-19 17:53:28 +00:00
wtchang%redhat.com
39a04a7180 Bugzilla Bug 272484: code cleanup. keythi.h: remove the unused type
definition of SEC_PKCS5KeyAndPassword.  p12d.c: We only need to set
p12dcx->currentASafeP7Dcx to NULL if it isn't NULL.  r=relyea.
Modified Files: cryptohi/keythi.h pkcs12/p12d.c


git-svn-id: svn://10.0.0.236/trunk@186274 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-19 17:46:30 +00:00
nelsonb%netscape.com
27fadfad5d Fix build. Remove c++ style declaration of loop control variables.
git-svn-id: svn://10.0.0.236/trunk@186198 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-17 01:03:12 +00:00
glen.beasley%sun.com
62b8622611 318964 implement HMAC algorithm tests for FIPS 140-2 validation r=Wan-teh
git-svn-id: svn://10.0.0.236/trunk@186167 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-16 16:57:49 +00:00
rrelyea%redhat.com
0c3b386ff1 Mac fixes to ckfw.
git-svn-id: svn://10.0.0.236/trunk@186147 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-16 01:57:41 +00:00
rrelyea%redhat.com
afec1a5424 Add support for the cryptoki crypto functions. This support is necessary for
capi and mackey. r=kaie


git-svn-id: svn://10.0.0.236/trunk@186144 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-16 00:48:02 +00:00
glen.beasley%sun.com
7caaef6cbd 318962 Added FIPS 140-2 SHA tests and removed FIPS 140-1 SHA tests r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@186120 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-15 18:50:52 +00:00
glen.beasley%sun.com
e068a8ae3c 318962 Added FIPS 140-2 SHA tests and removed FIPS 140-1 SHA tests r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@186119 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-15 18:47:20 +00:00
wtchang%redhat.com
a59c54dbcb Bugzilla Bug 320047: mp_to_unsigned/signed/fixlen_octets copies nothing to
the buffer if the mp_int is zero. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@186033 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-14 02:18:35 +00:00
wtchang%redhat.com
67e2b4967d Bugzilla Bug 236245: Updated NSS to "ECC Cipher Suites for TLS" draft 12
plus upcoming revisions.  The patch is contributed by Douglas Stebila
of Sun Labs <douglas@stebila.ca>. r=wtc.
Modified Files:
	cmd/selfserv/selfserv.c cmd/strsclnt/strsclnt.c
	cmd/tstclnt/tstclnt.c cmd/vfyserv/vfyserv.c lib/ssl/ssl3con.c
	lib/ssl/ssl3ecc.c lib/ssl/ssl3prot.h lib/ssl/sslenum.c
	lib/ssl/sslimpl.h lib/ssl/sslinfo.c lib/ssl/sslproto.h
	lib/ssl/sslsock.c tests/ssl/ecssl.sh tests/ssl/ecsslauth.txt
	tests/ssl/ecsslcov.txt tests/ssl/ecsslstress.txt
	tests/ssl/ssl.sh


git-svn-id: svn://10.0.0.236/trunk@186032 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-14 01:49:40 +00:00
glen.beasley%sun.com
ac15419376 318958 removal of DES and Triple DES 140-1 code r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@186031 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-14 01:19:11 +00:00
wtchang%redhat.com
4d0fccbb0d Bugzilla Bug 320038: ecl/ecl-curve.h: removed unnecessary leading zero byte
in the base point orders of curves K-233 and K-409.  ec.c: pad the private
key with leading zeros to the length of the base point order.
r=douglas.steblia.


git-svn-id: svn://10.0.0.236/trunk@186023 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-13 22:31:34 +00:00