Commit Graph

467 Commits

Author SHA1 Message Date
wtc%netscape.com
ac46fb12e3 Bugzilla bug #62855: added stubs for the SSL session cache functions so
that selfserv can link without unresolved symbols on OS/2.


git-svn-id: svn://10.0.0.236/trunk@85903 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 23:43:47 +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
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
008eff7f2b Bugzilla bug #62855: do not use the XP_PC macro. Use XP_WIN16 when we mean
Win 16.  Thanks to Javier Pedemonte <pedemont@us.ibm.com> for the patch.


git-svn-id: svn://10.0.0.236/trunk@85836 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 18:27:15 +00:00
wtc%netscape.com
7374eada86 Bugzilla bug #67122: put PR_CALLBACK after the return type in function
declarations.  This is the order required by OS/2 compilers.  Thanks to
Javier Pedemonte <pedemont@us.ibm.com> for the patch.
Modified files: hashops.c, tracker.c, certt.h, oid.c.


git-svn-id: svn://10.0.0.236/trunk@85833 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 18:01:53 +00:00
mcgreer%netscape.com
ac86952e60 bug 67100, memory leaks in rsa.c and pqg.c fixed.
git-svn-id: svn://10.0.0.236/trunk@85832 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 15:49:19 +00:00
nelsonb%netscape.com
5bc2557a28 Fix memory leak in mpp_make_prime. Bug 67094.
git-svn-id: svn://10.0.0.236/trunk@85788 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 00:37:40 +00:00
wtc%netscape.com
50931f27c7 Bugzilla bug #66367: rename the internal NSS functions that we have to
export from the NSS shared library.  Reviewed by Bob Relyea.
Modified Files:
	nss/lib/certdb/certdb.c nss/lib/certdb/pcertdb.c
	nss/lib/nss/Makefile nss/lib/nss/manifest.mn
	nss/lib/nss/nss.def nss/lib/pk11wrap/pk11skey.c
	nss/lib/pkcs12/p12d.c nss/lib/pkcs12/p12e.c
	nss/lib/pkcs12/p12local.c nss/lib/pkcs7/certread.c
	nss/lib/pkcs7/p7decode.c nss/lib/pkcs7/p7encode.c
	nss/lib/smime/cmsutil.c nss/lib/softoken/secpkcs5.c
	nss/lib/ssl/ssl3con.c nss/lib/ssl/sslcon.c
	nss/lib/ssl/sslnonce.c nss/lib/ssl/sslsnce.c
	nss/lib/util/nsslocks.c
Added Files:
	nss/lib/nss/nssrenam.h


git-svn-id: svn://10.0.0.236/trunk@85774 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 21:02:28 +00:00
mcgreer%netscape.com
3deed93443 export PKCS#12 symbols via the S/MIME DSO. Change default cipher list
to enable all available ciphersuites.


git-svn-id: svn://10.0.0.236/trunk@85768 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 19:47:39 +00:00
wtc%netscape.com
9666abf3c8 Bugzilla bug #66889: do not export the Windows import libraries for the
loadable PKCS#11 modules fort32.dll, swft32.dll, and nssckbi.dll.
Reviewed by Bob Relyea.
Modified files:
	nss/lib/ckfw/builtins/Makefile nss/lib/ckfw/builtins/config.mk
	nss/lib/fortcrypt/config.mk
	nss/lib/fortcrypt/swfort/pkcs11/config.mk


git-svn-id: svn://10.0.0.236/trunk@85767 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 19:43:26 +00:00
wtc%netscape.com
a8f41a3675 Bugzilla bug #64306: added stubs for PR_SetError and PR_SetErrorText.
Reviewed by Nelson Bolyard.


git-svn-id: svn://10.0.0.236/trunk@85702 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 02:03:47 +00:00
wtc%netscape.com
ac41e872c6 Bugzilla bug #63935: use our own macro LINUX instead of the compiler
predefined macro __linux as __linux is not defined by some compilers.
Thanks to jsmith@penguinppc.org for the bug report and a suggested fix.


git-svn-id: svn://10.0.0.236/trunk@85697 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 01:52:47 +00:00
mcgreer%netscape.com
650c0b7bde handle leading zeroes in q bug (66558). suggested by nicolson; r=mcgreer,a=wtc
git-svn-id: svn://10.0.0.236/trunk@85672 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-29 14:24:57 +00:00
mcgreer%netscape.com
8e4edb82dc Per bug #66551, remove all HMAC_ calls from exported symbol list. All
HMAC_ functionality can be done the PKCS#11 interface.


git-svn-id: svn://10.0.0.236/trunk@85636 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 16:38:45 +00:00
mcgreer%netscape.com
89893cb892 Change all HMAC_ calls to use PKCS#11 interface. Now the PKCS#12 library
only depends on functions already exported from the NSS DSO (the HMAC_
calls will be removed from the exported symbol list).
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@85633 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 16:34:27 +00:00
relyea%netscape.com
673c70fee5 Allow NSS_Initialize to succeed even if the databases cannot be opened.
NOTE: BETA 3 solution only. After Beta 3 NSS_Initialize will get to new
options to control this functionality more finely


git-svn-id: svn://10.0.0.236/trunk@85555 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 04:33:45 +00:00
nelsonb%netscape.com
3844d4f4f4 Win32 processes have two environments, a Unix-compatible one and an NT
environment.  NSS has no control over which of these environments will
be inherited by any child processes, so when NSS modifies or adds an
environment variable, it needs to do so to both environments.
This fixes bugzilla bug 66615.  Reviewed by wtc.


git-svn-id: svn://10.0.0.236/trunk@85551 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 03:24:05 +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
wtc%netscape.com
c52a0d1c42 Export the new function NSS_VersionCheck(). Reviewed by Nelson.
git-svn-id: svn://10.0.0.236/trunk@85461 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 02:43:48 +00:00
wtc%netscape.com
7714ba58e7 Bugzilla bug #66286: link libnss3.so with -R '$ORIGIN' on Solaris so that
it searches for libfreebl_*.so in the same directory where it resides.
As a result, libnss3.so, not libnspr4.so, must be the one calling dlopen,
so libnss3.so can't call PR_LoadLibraryWithFlags.
Modified files: lib/freebl/loader.c, lib/nss/config.mk


git-svn-id: svn://10.0.0.236/trunk@85417 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-24 05:26:19 +00:00
nelsonb%netscape.com
e2bb2506f2 Always detect failure of RNG_RNGInit(), which on Solaris and HPUX systems
typically signifies a failure to load the freebl DSO.  Fixes 66229.
r & a = wtc


git-svn-id: svn://10.0.0.236/trunk@85415 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-24 04:20:10 +00:00
wtc%netscape.com
bb21be13f4 Bugzilla bug #65918: do not build shared libraries on OSF1 with the -all
linker option.  The temporary workaround in two makefiles were removed.
Modified Files:
	coreconf/OSF1.mk nss/lib/ckfw/builtins/Makefile
	nss/lib/fortcrypt/swfort/pkcs11/Makefile


git-svn-id: svn://10.0.0.236/trunk@85279 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-22 17:16:47 +00:00
relyea%netscape.com
fb29b9742b Follow Wan-Teh's suggesion of using typedef's for enums.
Follow the same style we use elsewhere for enums.


git-svn-id: svn://10.0.0.236/trunk@85151 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 07:57:18 +00:00
relyea%netscape.com
c20c453ab7 Incorporate Wan-Teh's suggestion of using a typdef for the enum.
Follow the same standard we use elsewhere for enums.


git-svn-id: svn://10.0.0.236/trunk@85149 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 07:56:06 +00:00
relyea%netscape.com
d796033708 Bug 65903: Fixes to allow iWS admin stuff to work with shared library NSS
Add necessary exported symbols.
Fix bug in NSS_Initialize where we weren't passing the read only paramter
	through.
Add function to search for Certificate Lists so that Traverse does not need to
	be exposed.
Update pkcs11 names.


git-svn-id: svn://10.0.0.236/trunk@85148 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 07:53:54 +00:00
relyea%netscape.com
ed394b3e81 Bug 65902 Add OSF/1 to the OS's that can restrict symbols in shared libraries
git-svn-id: svn://10.0.0.236/trunk@85147 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 07:51:12 +00:00
relyea%netscape.com
41b2d202eb Bug 65902 Add OSF/1 to the OS's that can restrict symbols in shared libraries
git-svn-id: svn://10.0.0.236/trunk@85146 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 07:50:58 +00:00
relyea%netscape.com
e4e771cd60 Fix Serial number searches by removing the DER tag.
Bug 65895.


git-svn-id: svn://10.0.0.236/trunk@85144 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 07:47:57 +00:00
wtc%netscape.com
4ffe6b4b35 Add library version info to the NSS, S/MIME, and SSL shared libraries.
Define the NSS version macros and add NSS_VersionCheck in nss.h.
Add linker option to record internal name of shared libraries.
Add Windows resource files.  Add rcs and sccs id strings that can be
retrieved with 'ident' and 'what'.
Modified Files:
	coreconf/HP-UX.mk coreconf/OSF1.mk coreconf/SunOS5.mk
        coreconf/WIN954.0.mk coreconf/WINNT4.0.mk coreconf/WINNT5.0.mk
	coreconf/rules.mk nss/lib/nss/config.mk
	nss/lib/nss/manifest.mn nss/lib/nss/nss.h
	nss/lib/nss/nssinit.c nss/lib/smime/config.mk
	nss/lib/smime/manifest.mn nss/lib/ssl/config.mk
	nss/lib/ssl/manifest.mn
Added Files:
	nss/lib/nss/nss.rc nss/lib/nss/nssver.c nss/lib/smime/smime.rc
	nss/lib/smime/smimever.c nss/lib/ssl/ssl.rc
	nss/lib/ssl/sslver.c


git-svn-id: svn://10.0.0.236/trunk@85089 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 20:29:10 +00:00
mcgreer%netscape.com
080a17ebd4 fixes for prime generatation:
1.  Increase maximum tries to 600 (based on 2*(approx. frequency of 1024-bit primes))
2.  Lower the number of Miller-Rabin iterations for p and q based on HAC table 4.4
r=nelsonb,a=wtc


git-svn-id: svn://10.0.0.236/trunk@85088 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 16:39:10 +00:00
wtc%netscape.com
a620d900b4 Bugzilla bug #65416: assign values explicitly to enumeration constants.
The same values that the compiler would assign are assigned, with only
one exception (cmmfNoPKIStatus in cmmft.h).  This is patch id=22555,
reviewed by Nelson Bolyard.


git-svn-id: svn://10.0.0.236/trunk@85087 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 16:36:43 +00:00
nelsonb%netscape.com
86e42542d2 When searching for a prime, the number of Miller-Rabin tests to be
performed will be done in accordance with a table published in the
Handbook of Applied Cryptography.  See Bug 65151.  Also, changes to
test program for this function.


git-svn-id: svn://10.0.0.236/trunk@85061 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 01:39:17 +00:00
nelsonb%netscape.com
3aa312f741 Send SSL 3.x alert records when a version mismatch occurs.
Use the other party's version number to decide which alert to send.
Bug 65142.  R&A: relyea.


git-svn-id: svn://10.0.0.236/trunk@84914 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-13 02:32:39 +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
b9b03fad76 Remove all vestiges of old pre-NSS socks client implementation from NSS.
Bug 51471.


git-svn-id: svn://10.0.0.236/trunk@84912 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-13 01:52:59 +00:00
mcgreer%netscape.com
fc6581fb8e take back export of NSS_CMSArray_Count
git-svn-id: svn://10.0.0.236/trunk@84866 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 18:38:31 +00:00
mcgreer%netscape.com
b3bd20131b remove unspecified arg check (bug 65122)
git-svn-id: svn://10.0.0.236/trunk@84856 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 14:30:44 +00:00
mcgreer%netscape.com
9f0c17993d bug 64706
when prime generation step fails, retry up to a specified number of times


git-svn-id: svn://10.0.0.236/trunk@84855 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 14:29:47 +00:00
wtc%netscape.com
64a52be4e7 Added NSS_CMSArray_Count back to the exports list because
cmd/smimetools/cmsutil.c needs it.


git-svn-id: svn://10.0.0.236/trunk@84847 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 06:07:34 +00:00
nelsonb%netscape.com
58e49539c3 Save and restore %ebx register in all functions. Fixes bug 64940.
git-svn-id: svn://10.0.0.236/trunk@84835 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 01:37:02 +00:00
mcgreer%netscape.com
fdfcf8bc6f prune list of exported symbols for s/mime library
git-svn-id: svn://10.0.0.236/trunk@84800 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-11 20:09:01 +00:00
mcgreer%netscape.com
7d7458c348 back out previous change
git-svn-id: svn://10.0.0.236/trunk@84582 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 19:43:01 +00:00
mcgreer%netscape.com
ea9b61f05b decoding nickname entries needs to include the nickname.
when searching for smime entry, verify subject is correct (can be multiple
subjects per email address)


git-svn-id: svn://10.0.0.236/trunk@84580 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 19:24:23 +00:00
nelsonb%netscape.com
d3fb18f4ea Changed HP assembler routine multacc512 in hpma512.s so that it
propagates carries exactly the same way that maxpy_little does.
Re-enabled use of multacc512 in mpi_hp.c.


git-svn-id: svn://10.0.0.236/trunk@84558 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 05:58:34 +00:00
nelsonb%netscape.com
ccb2978905 Fix infinite loop by making "i" be signed again.
Also match up braces for vi editor.


git-svn-id: svn://10.0.0.236/trunk@84552 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 03:26:50 +00:00
nelsonb%netscape.com
257b169fe6 Generation of prime numbers has been failing on HP since MPI began to
use the newest HP assembler function, multacc512.  So, that function
has been disabled.  Further investigation is needed.


git-svn-id: svn://10.0.0.236/trunk@84540 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 01:01:35 +00:00
nelsonb%netscape.com
07e1db7a72 Eliminate some warnings found when compiling on Unix boxen.
git-svn-id: svn://10.0.0.236/trunk@84526 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 09:21:25 +00:00
nelsonb%netscape.com
bb7974ac11 MSVC won't let you initialize a pointer in a data structure with the
address of an external variable that comes from another DLL.
This is a fundamental difference between WIN32 DLLs and Unix DSOs.
So, for every SEC_ASN1Template inside of libnss3 that is referenced by
other templates outside of libnss3, a new "chooser" function was created
that returns the address of that template.  For WIN32, the templates
outside of libnss3 access libnss3's templates by the chooser function
rather than by direct reference.  Some simple macros allow Unix to
continue to use direct references, avoiding the extra function calls.
With these changes, all.sh (qa script) passes all tests on NT with DLLs.
Modified Files:
	cmd/checkcert/checkcert.c cmd/lib/secutil.c lib/asn1/asn1t.h
	lib/certdb/certdb.c lib/certdb/certt.h lib/certdb/crl.c
	lib/certhigh/certreq.c lib/crmf/asn1cmn.c lib/crmf/crmfcont.c
	lib/crmf/crmftmpl.c lib/cryptohi/secsign.c lib/nss/nss.def
	lib/pkcs12/p12local.c lib/pkcs12/p12tmpl.c
	lib/pkcs7/certread.c lib/pkcs7/p7decode.c lib/pkcs7/p7local.c
	lib/smime/cmsasn1.c lib/smime/cmsattr.c lib/smime/cmspubkey.c
	lib/smime/cmssigdata.c lib/smime/smimeutil.c
	lib/softoken/keydb.c lib/softoken/keydbt.h lib/util/secalgid.c
	lib/util/secasn1.h lib/util/secasn1d.c lib/util/secasn1t.h
	lib/util/secasn1u.c lib/util/secdig.c lib/util/secdig.h
	lib/util/secoid.h


git-svn-id: svn://10.0.0.236/trunk@84523 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 08:13:13 +00:00
nelsonb%netscape.com
6da659e535 Eliminate some warnings by adding missing #include lines, or other minor
cleanup.


git-svn-id: svn://10.0.0.236/trunk@84522 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:56:35 +00:00
nelsonb%netscape.com
8efab9fa06 Fix several bugs to get NSS_Init working again.
git-svn-id: svn://10.0.0.236/trunk@84515 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:37:18 +00:00