Commit Graph

202 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
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
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
7f3c01a89d Eliminate warnings about functions returning values of the wrong type.
git-svn-id: svn://10.0.0.236/trunk@84521 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:49:22 +00:00
nelsonb%netscape.com
a0442a3fc2 Add missing declaration of library function printflags().
git-svn-id: svn://10.0.0.236/trunk@84520 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:48:04 +00:00
nelsonb%netscape.com
859095a9f7 This program tests low level functions that aren't exported from the DSOs,
so it must be built with the static libs.


git-svn-id: svn://10.0.0.236/trunk@84519 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:47:17 +00:00
nelsonb%netscape.com
2b0cf82047 The recent deletion of the SECU_Password function from cmd/lib made this
progam stop compiling.  So, as a temporary measure, to fix the build,
ifdef out the calls to the missing functions, and always behave as if
the "-n none" option had been supplied.


git-svn-id: svn://10.0.0.236/trunk@84518 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:46:36 +00:00
nelsonb%netscape.com
68a5dcdc24 Get this file to build again on Windows.
git-svn-id: svn://10.0.0.236/trunk@84517 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:44:39 +00:00
nelsonb%netscape.com
68e54ecade Add missing #include "nss.h"
git-svn-id: svn://10.0.0.236/trunk@84516 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:43:28 +00:00
relyea%netscape.com
1ebd98045a Move SDR tests to use nss dll's
git-svn-id: svn://10.0.0.236/trunk@84504 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 00:32:36 +00:00
relyea%netscape.com
8d3ffe49fd Remove depricated Open function
git-svn-id: svn://10.0.0.236/trunk@84503 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 00:29:25 +00:00
relyea%netscape.com
2e0b7692c1 Remove depricated functions that's referencing a removed symbol
git-svn-id: svn://10.0.0.236/trunk@84496 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 23:55:22 +00:00
relyea%netscape.com
b1cc2130ca Fix initialization to use NSS_Init* functions rather than low level
init functions.


git-svn-id: svn://10.0.0.236/trunk@84489 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 22:09:04 +00:00
relyea%netscape.com
131904068e derdump needs to initialize NSS before calling the SECU functions.
git-svn-id: svn://10.0.0.236/trunk@84484 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 21:12:29 +00:00
relyea%netscape.com
d5678a9288 Use NSS_initialization.
Remove Low level SECKEY calls (not the private key management is now broken
until PK11 calls are added to replace them).


git-svn-id: svn://10.0.0.236/trunk@84483 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 21:11:34 +00:00
relyea%netscape.com
7840150a3b Use NSS initialization.
git-svn-id: svn://10.0.0.236/trunk@84482 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 21:10:18 +00:00
relyea%netscape.com
247e71075b Move the cert searching and printing utility function out of secutil.c so that
most functions which call secutil can still be used in the shared libraries.


git-svn-id: svn://10.0.0.236/trunk@84481 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 21:09:28 +00:00
relyea%netscape.com
ee3473443c remove depricated functions from secutil.
git-svn-id: svn://10.0.0.236/trunk@84480 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-06 21:05:36 +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
mcgreer%netscape.com
ca5f3a2537 add support for AES
reduce compiler warnings


git-svn-id: svn://10.0.0.236/trunk@84436 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 22:38:50 +00:00
wtc%netscape.com
fa14fe9597 Call NSS_Init() to initialize NSS. It's not necessary to call PR_Init()
because NSPR is implicitly initialized.


git-svn-id: svn://10.0.0.236/trunk@84433 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 21:14:47 +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
nelsonb%netscape.com
c6ec12f986 Reduce warnings by adding missing #includes to eliminate calls to
undeclared functions.


git-svn-id: svn://10.0.0.236/trunk@84366 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 08:21:15 +00:00
wtc%netscape.com
e57a4cba46 Bugzilla bug #64238: removed the unnecessary inclusion of mcom_db.h from
cryptohi.h, pk11func.h, secpkcs7.h, and cms.h.  Some files now need to
include <errno.h>.  They were including <errno.h> indirectly through
mcom_db.h.
Modified Files:
	cmd/atob/atob.c cmd/btoa/btoa.c cmd/derdump/derdump.c
	lib/cryptohi/cryptohi.h lib/pk11wrap/pk11func.h
	lib/pkcs7/secpkcs7.h lib/smime/cms.h lib/ssl/sslsnce.c


git-svn-id: svn://10.0.0.236/trunk@84341 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 00:44:30 +00:00
larryh%netscape.com
f4c579122d Bugzilla: 64132. NSS lock contention
git-svn-id: svn://10.0.0.236/trunk@84301 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-03 20:54:29 +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
wtc%netscape.com
ebbeac58aa Put -lnss3 after -lsmime3 and -lssl3, which depend on -lnss3.
git-svn-id: svn://10.0.0.236/trunk@84121 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-28 00:49:50 +00:00