378 Commits

Author SHA1 Message Date
nelsonb%netscape.com
f1930d9ddd Merge in changes from NSS 3.2.1.
git-svn-id: svn://10.0.0.236/trunk@92006 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 22:47:14 +00:00
nelsonb%netscape.com
70a450485b Remove unnecessary global tables of cipherSuite numbers. This solves
a problem with gcc on Linux, which overrides local/automatic definitions
with global ones.


git-svn-id: svn://10.0.0.236/trunk@91989 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 20:03:22 +00:00
nelsonb%netscape.com
58e68a8e98 Fix leak of cert reference in cert authentication callback functions.
git-svn-id: svn://10.0.0.236/trunk@90792 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 00:40:24 +00:00
relyea%netscape.com
396a9316a6 Change structure passing to pointer passing.
removed debugging printf's


git-svn-id: svn://10.0.0.236/trunk@90269 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 19:33:59 +00:00
nelsonb%netscape.com
31d9f60da5 Add function SECU_PrintBuf() which prints a buffer in hex and ASCII.
git-svn-id: svn://10.0.0.236/trunk@89872 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 04:23:38 +00:00
nelsonb%netscape.com
973c57e81f Use $TMP, $TMPDIR, or $TEMP for directory to hold server SID cache file.
Implements RFE 70617.


git-svn-id: svn://10.0.0.236/trunk@88371 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 02:52:21 +00:00
kirke%netscape.com
d01533357d Bug 69582 endless loop on EOF reading Extensions
git-svn-id: svn://10.0.0.236/trunk@88316 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 21:45:33 +00:00
relyea%netscape.com
e671c31a3f change '-p' to '-P' to be consistant with other tools.
git-svn-id: svn://10.0.0.236/trunk@88252 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 01:21:56 +00:00
relyea%netscape.com
6e5c224ecb On NT, it looks like isatty doesn't always work. Since we always use stdin for this use
that test instead.


git-svn-id: svn://10.0.0.236/trunk@88155 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 01:58:02 +00:00
relyea%netscape.com
fe509d4e2e Finish WinNT changes.
git-svn-id: svn://10.0.0.236/trunk@88154 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 01:57:08 +00:00
relyea%netscape.com
edc0c6a995 Add '-p' to specify a dbprefix.
Move the Tempfile created on input to /tmp so the code works in directories
that aren't writeable.
Fix the code to remove the Tempfile when done.
Use SECU_ConfigureDir so that we get the same defaultdb as other tools.


git-svn-id: svn://10.0.0.236/trunk@88146 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 01:21:11 +00:00
mcgreer%netscape.com
68f924d35c fix for #63982, -o not using file password
git-svn-id: svn://10.0.0.236/trunk@87699 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-22 23:35:17 +00:00
relyea%netscape.com
ed82589e54 OK, let's not get sloppy on the types... flags should be a PRUint32.
git-svn-id: svn://10.0.0.236/trunk@86732 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 02:05:19 +00:00
relyea%netscape.com
cfdefcfcde Make the public interface use a flags variable instead of a billion little
Bools.

suggested and reviewed by wtc in bug 66230


git-svn-id: svn://10.0.0.236/trunk@86731 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 02:03:03 +00:00
relyea%netscape.com
82187a130c update certutil and modutil to use the new NSS_Initialize signature.
modutil can now specify it's nocertdb paramter.

bug 64260 reviewed by wtc


git-svn-id: svn://10.0.0.236/trunk@86649 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-09 01:38:04 +00:00
nelsonb%netscape.com
e00b59a1ac Make SSL API consistent in using SECStatus as return value for functions
that return only values in that enumeration.  Bug 68097. R&A = relyea.
Modified Files:
 	lib/ssl/ssl.h lib/ssl/sslauth.c lib/ssl/sslsecur.c
 	lib/ssl/sslsnce.c lib/ssl/sslsock.c cmd/selfserv/selfserv.c
 	cmd/strsclnt/strsclnt.c


git-svn-id: svn://10.0.0.236/trunk@86642 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-09 00:32:14 +00:00
nelsonb%netscape.com
db44eb8ae5 Changes suggested by Wan-Teh.
git-svn-id: svn://10.0.0.236/trunk@86591 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-08 01:32:32 +00:00
nelsonb%netscape.com
1c41ad80b8 Big changes to get better SSL performance out of selfserv.
Launch all connection handler threads at program startup, and reuse those
threads for new connections, rather than creating new threads for each
connection and having them terminate at the end of each connection.
The main thread is now the acceptor thread.  It creates a queue of
accepted but unprocessed connections.  NSPR Condition variables are used
to schedule the connection handler threads.
Only one GET /stop message is now required to terminate selfserv.
Note, the -2 (full duplex) option is temporarily disabled until I get it
to work with this new thread model.
Add new -D command line option to suppress TCP Nagle delays.
Used to verify the fix to bug 67898.


git-svn-id: svn://10.0.0.236/trunk@86429 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 01:56:30 +00:00
nelsonb%netscape.com
f8fa659d39 Add new -D command line option to suppress TCP Nagle delays.
This is used to verify the fix for bug 67898.


git-svn-id: svn://10.0.0.236/trunk@86428 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 01:50:46 +00:00
mcgreer%netscape.com
c81d2c6862 bug 67132. certutil crashes on -C -x combination, deny it for now.
certutil -C was not recognizing the -a (ascii) option, implement it.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@86344 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 18:26:30 +00:00
relyea%netscape.com
6bce3244ca Bug 67501: Fix suggested by Nelson. Make '-d' option work again in sdrtest.
git-svn-id: svn://10.0.0.236/trunk@86271 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 01:05:21 +00:00
wtc%netscape.com
7906a156a2 Bugzilla bug #60143: checked in OpenVMS patch from Colin Blake
<colin@theblakes.com>.
Modified Files:
	coreconf/OpenVMS.mk coreconf/arch.mk coreconf/rules.mk
	coreconf/ruleset.mk nss/cmd/lib/secpwd.c nss/lib/nss/nss.h
	nss/lib/nss/nssinit.c


git-svn-id: svn://10.0.0.236/trunk@86172 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-04 05:52:42 +00:00
mcgreer%netscape.com
1469b41a38 get pk12util working with shared libs. Change ciphersuites to
be disabled by default to allow user control.  Export a couple
more functions to allow ciphersuite preferences.


git-svn-id: svn://10.0.0.236/trunk@86099 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 15:24:29 +00:00
wtc%netscape.com
9e6c133c84 Bugzilla bug #63768: removed references to the obsolete PURE_LIBRARY,
HAVE_PURIFY etc. make variables in NSS files.  Reviewed by nelson Bolyard.
Modified Files:
	cmd/platrules.mk cmd/crmf-cgi/config.mk cmd/crmftest/config.mk
	cmd/lib/config.mk cmd/zlib/config.mk lib/base/config.mk
	lib/certdb/config.mk lib/certhigh/config.mk lib/ckfw/config.mk
	lib/crmf/config.mk lib/cryptohi/config.mk
	lib/fortcrypt/swfort/config.mk lib/freebl/config.mk
	lib/jar/config.mk lib/nss/config.mk lib/pk11wrap/config.mk
	lib/pkcs12/config.mk lib/pkcs7/config.mk lib/smime/config.mk
	lib/softoken/config.mk lib/ssl/config.mk lib/util/config.mk


git-svn-id: svn://10.0.0.236/trunk@86029 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 01:49:57 +00:00
relyea%netscape.com
ac8ccd2734 remove cdbhdl.h and recode. bug 64206 reviewed by wtc.
git-svn-id: svn://10.0.0.236/trunk@85983 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 19:05:10 +00:00
relyea%netscape.com
2edf510fba remove cdbhdl.h bug 64260 reviewed by wtc.
git-svn-id: svn://10.0.0.236/trunk@85976 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 18:09:50 +00:00
kirke%netscape.com
0f5d395bad Resolved merge conflict with Ian.
git-svn-id: svn://10.0.0.236/trunk@85920 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 01:29:04 +00:00
kirke%netscape.com
36a11bbc0f Fixed bogus tab introduced by my previous checkin.
git-svn-id: svn://10.0.0.236/trunk@85915 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 00:57:26 +00:00
kirke%netscape.com
55dbf03443 Resolves bug 66244 - Many NSS command do not detect failure of NSS_Init* functions. Introduced SECU_PrintPRandOSError(progName); to print on failure. Each command is responsible for exiting with appropriate status to distinguish failure points.
git-svn-id: svn://10.0.0.236/trunk@85896 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 23:25:02 +00:00
wtc%netscape.com
b2b423ac4a Bugzilla bug #62855: checked in OS/2 makefile patches from Javier
Pedemonte <pedemont@us.ibm.com>.
Modified Files:
	coreconf/OS2.mk coreconf/arch.mk coreconf/prefix.mk
	coreconf/rules.mk coreconf/suffix.mk nss/Makefile
	nss/cmd/platlibs.mk nss/lib/ckfw/builtins/config.mk


git-svn-id: svn://10.0.0.236/trunk@85875 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 21:29:31 +00:00
wtc%netscape.com
470980c477 I found that #include <unistd.h> is still needed on Unix for getpid().
git-svn-id: svn://10.0.0.236/trunk@85843 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 19:18:09 +00:00
wtc%netscape.com
7eaf8ab4ae Bugzilla bug #62855: checked in OS/2 patches from Javier Pedemonte
<pedemont@us.ibm.com>.
Modified files: selfserv.c, swfutl.c, os2_rand.c.


git-svn-id: svn://10.0.0.236/trunk@85842 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 19:09:48 +00:00
wtc%netscape.com
d56852a8a7 Backed out the previous checkin as it requires
sec_port_ucs4_utf8_conversion_function and
sec_port_ucs2_utf8_conversion_function be exported on Unix.


git-svn-id: svn://10.0.0.236/trunk@85812 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 03:44:43 +00:00
wtc%netscape.com
cce6466b5f We can just pass NULL as the 'envp' argument to PR_CreateProcess, so we
do not need to get the declaration of 'environ' on Unix.  Reviewed by
Nelson Bolyard.


git-svn-id: svn://10.0.0.236/trunk@85811 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 03:39:59 +00:00
mcgreer%netscape.com
c44732627e change pk12util to use shared libs.
git-svn-id: svn://10.0.0.236/trunk@85769 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 19:49:52 +00:00
wtc%netscape.com
f2d112dba5 Bugzilla bug #54989: Use the AIX -brtl linker option to link the NSS
utilities with NSPR shared libraries.  Reviewed by Bob Relyea.


git-svn-id: svn://10.0.0.236/trunk@85766 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 19:11:22 +00:00
nelsonb%netscape.com
4c5f28388a Add multi-process server capability to selfserv. Bug 66630.
New -M command line option runs multiple selfserv processes,
all serving in parallel on the same TCP listen socket.


git-svn-id: svn://10.0.0.236/trunk@85597 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 00:36:15 +00:00
mcgreer%netscape.com
b3d5329062 thought I'd be cool and make it build with DSO's, but alas, need CERT_DecodeTrustString...
git-svn-id: svn://10.0.0.236/trunk@85575 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 16:45:46 +00:00
mcgreer%netscape.com
83107202a3 initial checkin of tool which converts CA certs into format for certdata.txt
git-svn-id: svn://10.0.0.236/trunk@85574 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 16:32:10 +00:00
wtc%netscape.com
4f79024ac3 Bugzilla bug #65416: assign values to enumeration constants in secutil.h
and nssilock.h explicitly.  Reviewed by Ian McGreer.


git-svn-id: svn://10.0.0.236/trunk@85499 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 19:05:50 +00:00
nelsonb%netscape.com
74ddd2b9da Detect failures of NSS_Init and report them.
This fixes bug 66244 for certutil (only).


git-svn-id: svn://10.0.0.236/trunk@85466 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 04:14:22 +00:00
sonmi%netscape.com
872459e400 cleanup after testclient -q successfully connected before exiting
git-svn-id: svn://10.0.0.236/trunk@85353 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 05:01:24 +00:00
sonmi%netscape.com
5dbd65da50 do_accept now ignores the PR_CONNECT_RESET_ERROR
git-svn-id: svn://10.0.0.236/trunk@85352 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 04:56:53 +00:00
mcgreer%netscape.com
44274af2ae add option for db prefix
git-svn-id: svn://10.0.0.236/trunk@85283 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-22 20:14:05 +00:00
mcgreer%netscape.com
6d30756adc dbprefix option added
git-svn-id: svn://10.0.0.236/trunk@85281 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-22 19:51:41 +00:00
mcgreer%netscape.com
eb7bf466b7 make blapitest return error codes so QA lights up correctly. Fix bug with DSA
self-test.  r=wtc


git-svn-id: svn://10.0.0.236/trunk@85090 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 21:45:47 +00:00
sonmi%netscape.com
6939deae3d changed the stopQ conditionvariable to theadQ
git-svn-id: svn://10.0.0.236/trunk@85005 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-17 02:26:27 +00:00
nelsonb%netscape.com
8eaac606a9 Add implementation of SSL_RSA_WITH_RC4_128_SHA SSL3 cipher suite,
which is not enabled by default.  Bug 59795.


git-svn-id: svn://10.0.0.236/trunk@84913 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-13 02:05:15 +00:00
nelsonb%netscape.com
3f02ae5ea6 Suppress EOF messages unless running with -v. Bug 60879.
git-svn-id: svn://10.0.0.236/trunk@84908 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-13 00:55:30 +00:00
mcgreer%netscape.com
e695d6ff6c removing use of external NSS_CMSArray_Count
git-svn-id: svn://10.0.0.236/trunk@84865 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 18:37:41 +00:00