139 Commits

Author SHA1 Message Date
nelsonb%netscape.com
bca9f97d3a Don't reject a cert request with an empty list of CA cert names.
Don't crash with an empty CA name list.


git-svn-id: svn://10.0.0.236/trunk@133943 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 03:19:48 +00:00
nelsonb%netscape.com
827c334f1c Fix missing strings that cause crash in SSL_SecurityStatus(). Bug 178342.
git-svn-id: svn://10.0.0.236/trunk@132968 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-05 00:25:20 +00:00
wtc%netscape.com
cbc1167df3 Bug 127740: added a comment to explain the thread yield in
ssl3_SendApplicationData.


git-svn-id: svn://10.0.0.236/trunk@130809 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 20:51:05 +00:00
wtc%netscape.com
91b98bac0f Bug 153380: document the default values for the SSL options.
git-svn-id: svn://10.0.0.236/trunk@129970 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 22:32:19 +00:00
jpierre%netscape.com
c090eaa1e9 Fix NT build
git-svn-id: svn://10.0.0.236/trunk@129030 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 02:48:45 +00:00
jpierre%netscape.com
9b0237c574 Fix compiler warnings
git-svn-id: svn://10.0.0.236/trunk@129024 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 01:48:46 +00:00
nicolson%netscape.com
4b34ca8158 Fix 164126: makefile build error.
Change the NSS module name from "security" to "nss".


git-svn-id: svn://10.0.0.236/trunk@128961 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 16:38:56 +00:00
wtc%netscape.com
16ce983004 Bugs 166734 and 166785: fixed compiler warnings reported by gcc on Linux.
The patch for this checkin is attached to bug 166785.


git-svn-id: svn://10.0.0.236/trunk@128926 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 00:27:52 +00:00
nelsonb%netscape.com
a621affedc Support the TLS_RSA_WITH_NULL_SHA cipher suite. Bug 161529.
git-svn-id: svn://10.0.0.236/trunk@126906 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 21:53:17 +00:00
nelsonb%netscape.com
3b1e2d7136 Fix bug 160207 by changing the error alerts we send for failed decryption.
git-svn-id: svn://10.0.0.236/trunk@126681 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 20:01:51 +00:00
bishakhabanerjee%netscape.com
dbb33a4181 Checking in riceman+bmo@mail.rit.edu's patch for bug 133702
git-svn-id: svn://10.0.0.236/trunk@126078 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-30 20:57:44 +00:00
relyea%netscape.com
424861117d Initialize type field to clear off purify warnings.
git-svn-id: svn://10.0.0.236/trunk@124041 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:00:59 +00:00
nelsonb%netscape.com
9b6375ccb6 Fix bug 135261. Create symbolic names for the values 2 and 3 for the
SSL_REQUIRE_CERTIFICATE option.  Value 2 has always been the default.
New Value 3 is appropriate for servers that want to re-request, but
still not require, client-auth from a client with whom an SSL session
is already established.


git-svn-id: svn://10.0.0.236/trunk@123859 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 01:40:32 +00:00
wtc%netscape.com
c1bd73527f Bug 153380: TLS is enabled by default now.
git-svn-id: svn://10.0.0.236/trunk@123794 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 18:25:46 +00:00
ian.mcgreer%sun.com
d5ba19e9d7 bug 145322, reduce the number of PKCS#11 sessions used in SSL connections, implement new function PK11_SaveContextAlloc
r=relyea


git-svn-id: svn://10.0.0.236/trunk@123592 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:21:37 +00:00
wtc%netscape.com
c20e6cd554 Bugzilla bug 145178: added OpenBSD build support. The patch is contributed
by Christopher Seawood <seawood@netscape.com>.
Modified Files: coreconf/config.mk sslmutex.c sslmutex.h
Added Files: coreconf/OpenBSD.mk


git-svn-id: svn://10.0.0.236/trunk@121823 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 03:24:17 +00:00
wtc%netscape.com
836a983bd1 Bugzilla bug 138532: use pipes instead of semaphores for NetBSD, which does
not have semaphore.h.  Thanks to Chris Seawood <seawood@netscape.com> for
the patch.  Modified files: sslmutex.h sslmutex.c


git-svn-id: svn://10.0.0.236/trunk@121619 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 13:36:03 +00:00
wtc%netscape.com
b90d0bfa19 Fixed build breakage on BeOS -- made the ifdef match the one in sslsnce.c.
git-svn-id: svn://10.0.0.236/trunk@121606 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 05:32:30 +00:00
wtc%netscape.com
85ec3def26 Bugzilla bug 127062: use PR_MSG_PEEK instead of MSG_PEEK.
git-svn-id: svn://10.0.0.236/trunk@120370 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 00:21:50 +00:00
nelsonb%netscape.com
bd4ec428c8 Fix build error on NT.
git-svn-id: svn://10.0.0.236/trunk@118069 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 01:41:19 +00:00
nelsonb%netscape.com
a36887f58a Make libSSL build for WinCE.
git-svn-id: svn://10.0.0.236/trunk@118061 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 00:14:12 +00:00
nelsonb%netscape.com
cb2ed793b0 If an error occurs when attempting to write previously buffered data on
a socket, do not override the error code with PR_WOULD_BLOCK_ERROR.
bug 132899.


git-svn-id: svn://10.0.0.236/trunk@117264 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 01:06:08 +00:00
ian.mcgreer%sun.com
706f544f7a bug 132889, sense of boolean 'blocking' is reversed within the HANDLE_ERR macro of ssl_WriteV
git-svn-id: svn://10.0.0.236/trunk@117239 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 22:48:02 +00:00
nelsonb%netscape.com
6d7e9c6fff Add new bits to struct returned by SSL_GetCipherSuiteInfo. Bug 132438.
git-svn-id: svn://10.0.0.236/trunk@117229 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 21:43:43 +00:00
wtc%netscape.com
53ab332e0a Bugzilla bug 129408: final adjustments of the NSS 3.4 *.def files. List
the symbols in alphabetical order.  In softokn.def, changed "Sofoken 3.4
release" to "NSS 3.4 release, which is what we use in other *.def files.
Added seven new PKCS7 exports to smime.def.  r=relyea
Modified files: nss.def smime.def softokn.def ssl.def


git-svn-id: svn://10.0.0.236/trunk@116083 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 21:18:49 +00:00
bishakhabanerjee%netscape.com
1ce1f61b7f Bug 127785 - checked in cseawood's patch
git-svn-id: svn://10.0.0.236/trunk@115443 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-27 21:49:41 +00:00
nelsonb%netscape.com
76f9a42d49 1. the sslSecurityInfo and sslGather structs are now part of the sslSocket
rather than being pointed to by the sslSocket.  This reduces the number
of malloc/free calls, and greatly reduces pointer fetches, and null
pointer checks.  sslGather and sslSecurityInfo are separately initialized.
2. SSL_ResetHandshake no longer deallocates and reallocates the sslSecurityInfo and all its subcomponents.
3. Many places that formerly did not check for memory allocation failures
now do check, and do the right thing when allocation failed.


git-svn-id: svn://10.0.0.236/trunk@115407 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-27 04:40:17 +00:00
nelsonb%netscape.com
2b8a7de572 Change ssl_GetPeerInfo to no longer assume that an address is IPV6 if
it's not IPv4.  Fixes a bug on systems that don't support IPV6, but
do support other address families.


git-svn-id: svn://10.0.0.236/trunk@115336 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 00:28:15 +00:00
wtc%netscape.com
52f5bfd019 Bugzilla bug 70217: ported NSS to BeOS. The patch is contributed by
Christopher Seawood <seawood@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@115206 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 04:23:30 +00:00
wtc%netscape.com
5f32ec59fc Bugzilla bug 125730: fixed OpenVMS build breakage. Thanks to Colin Blakes
<colin@theblakes.com> for the patch.
odified Files: sslmutex.c sslmutex.h sslsnce.c


git-svn-id: svn://10.0.0.236/trunk@114654 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 02:52:07 +00:00
wtc%netscape.com
88629b5fca Bugzilla bug 112198: use the -dylib_file ld option to link the ssl3 and
smime3 dylibs and the NSS tools so that they can find the indirectly
referenced libsoftokn3.dylib.  Define and export DYLD_LIBRARY_PATH.  The
patch is contributed by Brian Ryner <bryner@netscape.com>. r=wtc,beard.
Modified Files:
	coreconf/Darwin.mk nss/cmd/platlibs.mk nss/lib/smime/config.mk
	nss/lib/ssl/config.mk nss/tests/common/init.sh


git-svn-id: svn://10.0.0.236/trunk@114612 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 23:38:47 +00:00
nelsonb%netscape.com
d58ebedbc4 Change most coreconf and NSS makefiles to use OS_TARGET (which can
be overridden via an environment variable) rather than OS_ARCH.
This is a precursor to more flexibility in cross-platform builds.
Bug 104541.


git-svn-id: svn://10.0.0.236/trunk@114608 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 22:54:08 +00:00
wtc%netscape.com
52d63759fb Bugzilla bug 112198: Port NSS to Mac OS X (Darwin). The patch is
contributed by Javier Pedemonte <pedemonte@alumni.utexas.net>.
Modified Files:
	coreconf/config.mk coreconf/nsinstall/nsinstall.c
	coreconf/nsinstall/pathsub.c nss/lib/freebl/unix_rand.c
	nss/lib/ssl/unix_err.c


git-svn-id: svn://10.0.0.236/trunk@114158 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 05:24:49 +00:00
nelsonb%netscape.com
a9cd5beaa8 Plug one of the leaks reported in bugzilla bug 123081
git-svn-id: svn://10.0.0.236/trunk@113642 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 23:15:11 +00:00
javi%netscape.com
b33a159e20 Changes required to get the trunk of NSS building on the Mac.
git-svn-id: svn://10.0.0.236/trunk@111740 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 23:22:23 +00:00
jpierre%netscape.com
9acaca40ca Fix 114787 - ssl_recv crashes in client. bogus assert. reviewed by nelson
git-svn-id: svn://10.0.0.236/trunk@110399 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 21:44:04 +00:00
relyea%netscape.com
9791b95d47 1) NT need the err= defines, use macros to set it appropriately (or not).
2) restore missing sec = function


git-svn-id: svn://10.0.0.236/trunk@109960 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 02:30:53 +00:00
relyea%netscape.com
7d6f186554 emulate does not include PORT_ functions, use PR_ASSERT
git-svn-id: svn://10.0.0.236/trunk@109951 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 02:04:24 +00:00
relyea%netscape.com
dd1d27c432 Clean up compilier warnings on Solaris and Linux, most particularly:
1) Implicit declaration of function.
2) Possibly unitialized variables.

These warnings have indicated some real problems in the code, so many changes
are not just to silence the warnings, but to fix the problems. Others were
inocuous, but the warnings were silenced to reduce the noise.


git-svn-id: svn://10.0.0.236/trunk@109938 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:36:25 +00:00
wtc%netscape.com
46e7a3b371 Bugzilla bug 111294: make NSS build on QNX6 (Neutrino). The patch was
contributed by Dave Inglis <dinglis@qnx.com>. r=wtc.
Modified Files:
	coreconf/config.mk coreconf/nsinstall/nsinstall.c
	nss/lib/freebl/unix_rand.c nss/lib/ssl/unix_err.c
Added Files:
	coreconf/QNX.mk


git-svn-id: svn://10.0.0.236/trunk@109640 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 18:20:57 +00:00
jpierre%netscape.com
87e28e9839 Fixes for OS/2 build
git-svn-id: svn://10.0.0.236/trunk@108772 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:46:48 +00:00
relyea%netscape.com
e31243d81f changes for PSM to compile against NSS shared libraries.
Move SSL and S/MIME to the new common MAPFILE usage


git-svn-id: svn://10.0.0.236/trunk@108708 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 18:00:28 +00:00
nelsonb%netscape.com
7e4958958b Add localCert field to sid cache entry so SSL_LocalCertificate can
remember the certs it sent back when it established the SSL session.
Bug 78959.  Also, hold on the certs in the received cert chain until
the SSL connection is complete.  This makes it easier for applications
to look at the entire cert chain after the handshake is over without
having to write their own custom authCert callbacks.  It is backwards
compatible with older NSS SSL applications, but may use more memory.


git-svn-id: svn://10.0.0.236/trunk@107729 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 05:39:36 +00:00
nelsonb%netscape.com
076553af57 Implement new function SSL_LocalCertificate(). Bug 78959.
git-svn-id: svn://10.0.0.236/trunk@107638 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 02:15:38 +00:00
relyea%netscape.com
162c530b16 Land BOB_WORK_BRANCH unto the tip.
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.


git-svn-id: svn://10.0.0.236/trunk@107628 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:15:51 +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
nelsonb%netscape.com
5b7036cc69 Put better comments by the table of preconfigured policies.
git-svn-id: svn://10.0.0.236/trunk@107058 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:00:27 +00:00
relyea%netscape.com
6e5fb40196 Don't crash on SSL2 failures.
git-svn-id: svn://10.0.0.236/trunk@106837 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 20:03:29 +00:00
nelsonb%netscape.com
845d4b22d8 Fix bug 107619. The new DHE_ ciphersuites were enabled by default.
Now they are disabled by default, for compatibility with NSS 2.0.


git-svn-id: svn://10.0.0.236/trunk@106706 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:09:47 +00:00
jpierre%netscape.com
15289e2464 Fix Linux build
git-svn-id: svn://10.0.0.236/trunk@104803 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 18:49:17 +00:00