Commit Graph

762 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
javi%netscape.com
d785c292ab Don't build cmd directory for mozilla builds.
git-svn-id: svn://10.0.0.236/trunk@85413 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-24 03:45:53 +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
sonmi%netscape.com
30023397c3 Since we have frozen the tip I only checked in high priority fixes.
The individual fixes:
1) A complete QA failure produces a readable email now
2) the nssqa has goes thru a central Exit
3) hanging processes under NT and Win2K are killed (tail -f)
4) Functionallity is implemented to kill other remaining processes (killpif file)
5) improved general cleanup in Exit functions
6) the header is sourced from the nssqa dir rateher than /u/sonmi/bin
7) Problems with QA being reported as passed even if missing fixed
8) Most problems with the "missing Platform list" fixed
9) One QA failure path (cd to a dir without permission) did not give
	errormessage about the reason of failure before
10) fixed html errors in generated email
11) stopped filtering the "bad password" cases as real failures (was fixed in
	nssqa a while ago, but still filtered
12) removing more tmp files from /tmp (decreased debugging)


git-svn-id: svn://10.0.0.236/trunk@85336 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 01:51:47 +00:00
sonmi%netscape.com
5f8b25434f added information in the result.html when selfserver dies (previously
only in output.log)


git-svn-id: svn://10.0.0.236/trunk@85335 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 01:47:32 +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
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
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
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