45 Commits

Author SHA1 Message Date
nelsonb%netscape.com
4d292871d6 Fix Usage message. Add missing \n to string.
git-svn-id: svn://10.0.0.236/trunk@115547 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 01:53:07 +00:00
wtc%netscape.com
68e3ff3855 Bugzilla bug 125790: free the nickName and passwd strings
git-svn-id: svn://10.0.0.236/trunk@114607 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 21:53:25 +00:00
wtc%netscape.com
bab3530e7f Bugzilla bug 119340: write the "selfserv: received SIGTERM" message to
standard output (fd 1) instead of standard error (fd 2) because the test
script writes its output to standard output (with the echo command).


git-svn-id: svn://10.0.0.236/trunk@113735 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 01:38:06 +00:00
ian.mcgreer%sun.com
633f5faf30 bug 90518, selfserv dumps cache state before shutdown with -y option
git-svn-id: svn://10.0.0.236/trunk@113530 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 19:39:48 +00:00
wtc%netscape.com
6cba3e1cfe Bugzilla bug 119340: install a SIGTERM handler on Linux for debugging.
git-svn-id: svn://10.0.0.236/trunk@113403 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 05:57:49 +00:00
wtc%netscape.com
52cd995d98 Bugzilla bug 119340: backed out the fix. We are still seeing the
"selfserv process not detectable" errors on Linux and I don't have
time to get to the bottom of it.
Modified files:
	cmd/selfserv/selfserv.c tests/common/init.sh tests/ssl/ssl.sh


git-svn-id: svn://10.0.0.236/trunk@113271 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 02:03:57 +00:00
wtc%netscape.com
6fd02510af Bugzilla bug 119340: an inelegant but more reliable way to kill the
multithreaded 'selfserv' process on Linux.
Modified files:
    cmd/selfserv/selfserv.c tests/common/init.sh tests/ssl/ssl.sh


git-svn-id: svn://10.0.0.236/trunk@112572 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 03:18:57 +00:00
wtc%netscape.com
f3b808bdf3 Bugzilla bug 119340: added a debug printf statement.
git-svn-id: svn://10.0.0.236/trunk@112290 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:29:06 +00:00
kirk.erickson%sun.com
be41a6dbba Fixed termination when using -L 30 (see bug 107777).
This is a temporary solution, creating SYSTEM rather than USER loggerThread.
Later we should create a USER thread, Interrupt, and tell the thread to exit.


git-svn-id: svn://10.0.0.236/trunk@111907 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 01:03:28 +00:00
kirk.erickson%sun.com
b992807046 Fixes bug 107777. Added '-L <seconds>' argument (ops/sec logging).
Review by Nelson and Wan-Teh made this patch very clean.  We are
now creating a separating logger() thread.


git-svn-id: svn://10.0.0.236/trunk@109009 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:08:57 +00:00
kirk.erickson%sun.com
072424c974 Resolves 107777 - selfserv needs log stats mode
git-svn-id: svn://10.0.0.236/trunk@107940 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 02:13:19 +00:00
ian.mcgreer%sun.com
3a136e2217 Output validated cert text to stdout, otherwise the QA scripts think there is a failure.
git-svn-id: svn://10.0.0.236/trunk@107742 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:40:26 +00:00
nelsonb%netscape.com
b4a47a9861 Added a new -o option, to override check on received client auth certs,
forcing those certs to be OK.  -v will now test the SSL_LocalCertificate()
function.  Bug 78959.


git-svn-id: svn://10.0.0.236/trunk@107731 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 05:45:21 +00:00
nelsonb%netscape.com
b91f3120f1 Reimplement SSL_GetChannelInfo. Add new function SSL_GetCipherSuiteInfo().
Also, implement new ciphersuite preference order.  Bug 78959.


git-svn-id: svn://10.0.0.236/trunk@107060 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:24:28 +00:00
jpierre%netscape.com
7520340aed Fix for 102089 - add a new "-l" command-line option to selfserv to use local threads . This enables NT fibers on Windows NT
git-svn-id: svn://10.0.0.236/trunk@104179 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 00:35:54 +00:00
jpierre%netscape.com
01e9e71530 Fix for bug 101617 - make selfserv work in multi process mode on Windows NT
git-svn-id: svn://10.0.0.236/trunk@104077 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 02:43:48 +00:00
nelsonb%netscape.com
473503a731 Correct the test for length of data in SSL channel info struct.
git-svn-id: svn://10.0.0.236/trunk@103807 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 04:22:55 +00:00
nelsonb%netscape.com
c4b44f9b2f Add support for new TLS AES ciphersuites. Bug 87021.
git-svn-id: svn://10.0.0.236/trunk@103410 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-21 03:09:32 +00:00
nelsonb%netscape.com
838aefdfe7 Use new function SSL_GetChannelInfo(). Bugzilla bug 78959.
Also, reduce size of SSL server session cache on disk.


git-svn-id: svn://10.0.0.236/trunk@103059 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 02:05:08 +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
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
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
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
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
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
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
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
nelsonb%netscape.com
912cbdbcf0 Stop using deprecated SSL functions. Convert them to the supported ones.
git-svn-id: svn://10.0.0.236/trunk@84462 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 02:40:02 +00:00
nelsonb%netscape.com
dbd95a18a1 Changes to deal with exporting data from Windows DLLs.
SECHashObjects[] is no longer exported.
New function HASH_GetHashObject returns pointer to selected const object.
SSL statistics are now in a structure whose address is obtained via a
call to SSL_GetStatistics().
On NT, the new symbol NSS_USE_STATIC_LIBS must be declared in programs
that use the static SSL library.
Also, propagate "const" declaration for SECHashObjects.


git-svn-id: svn://10.0.0.236/trunk@84403 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 01:38:26 +00:00
larryh%netscape.com
18549422d1 Bugzilla: 64132. NSS lock instrumentation
git-svn-id: svn://10.0.0.236/trunk@84300 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-03 19:51:22 +00:00
kirke%netscape.com
7d8fcf6e05 Made argument processing more robust (ala stresclnt.c). We now detect
and fail when something on the command line is not recognized.  Also
exiting with distinct status values for all error conditions (previously
we always exited with '1').


git-svn-id: svn://10.0.0.236/trunk@84271 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-02 22:19:55 +00:00
larryh%netscape.com
9bb1174fda Bugzilla: 62396, fix threads in selfserv.c
git-svn-id: svn://10.0.0.236/trunk@83424 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 01:35:54 +00:00
nelsonb%netscape.com
0347ee2d5b Prefix all selfserv's output messages with "selfserv: " so we can tell
client messages apart from server messages when the two are mixed.
When the verbose option is enabled, print out the session reuse stats
right after the first PR_Read completes, so we don't miss any.


git-svn-id: svn://10.0.0.236/trunk@80426 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 04:14:44 +00:00
relyea%netscape.com
8f530a0285 Add option to get the server pid so we can kill the server later.
git-svn-id: svn://10.0.0.236/trunk@79030 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 21:25:13 +00:00
relyea%netscape.com
743720da87 merge changes from NSS 3.0 branch to allow NT automated tests to work.
git-svn-id: svn://10.0.0.236/trunk@73533 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:25:41 +00:00
nelsonb%netscape.com
1880f41677 Correct the implementation of the options for disabling SSL2, SSL3 and TLS.
Add a new -R option to selfserv, which disables detection of rollback from
TLS to SSL3.0.  This is necessary for testing with broken TLS clients.


git-svn-id: svn://10.0.0.236/trunk@70709 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 03:44:50 +00:00
relyea%netscape.com
3af266775d 1) add code to allow selfserv to reuse existing listen ports when they are 'just haning around' (allows our test suits to run when starting and stopping the server all the time).
2) flush out any server output so it doesn't get lost from out test suites


git-svn-id: svn://10.0.0.236/trunk@70060 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 17:25:42 +00:00
relyea%netscape.com
fbf05404e8 Update makefiles so NT will build. (and other platforms that don't have symbolic links)
git-svn-id: svn://10.0.0.236/trunk@65052 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 21:41:33 +00:00
relyea%netscape.com
a4d4d45374 Initial NSS Open Source checkin
git-svn-id: svn://10.0.0.236/trunk@64788 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 20:13:40 +00:00