479 Commits

Author SHA1 Message Date
wtc%netscape.com
2bf0c058f2 Need to call SSL_ClearSessionCache before calling NSS_Shutdown.
git-svn-id: svn://10.0.0.236/trunk@136013 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 21:40:52 +00:00
bishakhabanerjee%netscape.com
83644cf086 checking return value of NSS_Shutdown. Bug 171263
git-svn-id: svn://10.0.0.236/trunk@135951 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 22:53:13 +00:00
bishakhabanerjee%netscape.com
43ef69edd2 checking return value of NSS_Shutdown. Bug 171263
git-svn-id: svn://10.0.0.236/trunk@135950 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 22:31:36 +00:00
bishakhabanerjee%netscape.com
44597bc93e new revision: 1.19; previous revision: 1.18
git-svn-id: svn://10.0.0.236/trunk@135949 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 22:29:54 +00:00
wtc%netscape.com
9bb9b998ad Bug 183612: renamed some new functions to be consistent with existing
function names containing SubjectKey and PublicKey.  Moved internal
functions to private headers and use the lowercase cert_ prefix for the
internal functions for subject key ID mapping hash table. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@135480 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-19 00:26:34 +00:00
nelsonb%netscape.com
9f7cd0929a Clean up command line options parsing and Usage message.
git-svn-id: svn://10.0.0.236/trunk@135210 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 01:25:45 +00:00
nelsonb%netscape.com
d36cf9c052 Support SHA256, SHA384, and SHA512 hashes in NSS.
git-svn-id: svn://10.0.0.236/trunk@135163 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 06:05:45 +00:00
relyea%netscape.com
927e518bfe Program to test smartcard removal and insertion detection.
git-svn-id: svn://10.0.0.236/trunk@135135 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 17:44:53 +00:00
thayes%netscape.com
f99655d56d Bug 184557: Allow usage specified on command line (-u) to be used to validate
certificates used for signing (-S option).  Also add special handling for
nickname "NONE" in the -Y option.  This specifies that no certificate and
encryption key preference should be included in the signature object.


git-svn-id: svn://10.0.0.236/trunk@135090 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 01:44:37 +00:00
relyea%netscape.com
835ba61f1e Sigh, this is what was breaking the Linux builds... incorrect initializer.
git-svn-id: svn://10.0.0.236/trunk@135041 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 18:09:16 +00:00
relyea%netscape.com
224056f917 Add code to create multiple email addresses in a single cert.
git-svn-id: svn://10.0.0.236/trunk@135036 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-10 17:18:06 +00:00
nelsonb%netscape.com
5a0910167b Expunge dead code.
git-svn-id: svn://10.0.0.236/trunk@134858 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-05 22:16:22 +00:00
ian.mcgreer%sun.com
4a6e624c98 bug 172247, don't allow import of duplicate issuer/serial certs
git-svn-id: svn://10.0.0.236/trunk@134280 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 20:43:15 +00:00
nelsonb%netscape.com
3eb7a816ce Add test modes for sha256, sha384 and sha512.
Fix the -c (restart) option for testing hashes.  It works with all hashes.
When the -d option is given along with the -i or -o filename option,
and the filename is not absolute, the filename is taken to be relative to
the the mode's test directory.


git-svn-id: svn://10.0.0.236/trunk@134246 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 05:44:03 +00:00
nelsonb%netscape.com
f058825676 Add test cases from FIPS 180-2.
git-svn-id: svn://10.0.0.236/trunk@134235 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 02:26:50 +00:00
nelsonb%netscape.com
2b6e228061 Fix crash when formatting a cert with optional version not given.
git-svn-id: svn://10.0.0.236/trunk@133889 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 06:32:51 +00:00
nelsonb%netscape.com
80c4c4369b Make selfserv build for Darwin.
git-svn-id: svn://10.0.0.236/trunk@133861 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 23:33:24 +00:00
relyea%netscape.com
b486fee8f0 Remove long dead code from util. triggered by bug 179038
git-svn-id: svn://10.0.0.236/trunk@133574 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-11 18:17:24 +00:00
relyea%netscape.com
db6a20b385 !@#!$@! signtool thinks it knows how to verify if the certdb's are there and
OK or not. Of course it doesn't.

bob


git-svn-id: svn://10.0.0.236/trunk@132938 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-04 20:37:08 +00:00
nelsonb%netscape.com
4eb322a2ce Fix several problems related to error messages, including an attempt to
print a null string pointer.


git-svn-id: svn://10.0.0.236/trunk@132837 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 21:04:33 +00:00
nelsonb%netscape.com
6a4a0128ec Reformat text. Fix syntax error in first examples.
git-svn-id: svn://10.0.0.236/trunk@132835 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 21:03:24 +00:00
relyea%netscape.com
bd5463e3f1 The Serial number needs to be the DEREncoded serial number, not the decoded
Serial number.


git-svn-id: svn://10.0.0.236/trunk@132727 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 17:22:06 +00:00
nelsonb%netscape.com
8ee0616d0c Add -v option, which prints email addresses in certs. This excersizes
the new functions for extracting email addresses from certs.  Bug 152986.


git-svn-id: svn://10.0.0.236/trunk@132427 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 01:40:40 +00:00
bishakhabanerjee%netscape.com
81e40f537d commented out unchecked in tests
git-svn-id: svn://10.0.0.236/trunk@132420 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 00:19:53 +00:00
nelsonb%netscape.com
2a6f78cf87 Verify the self-signed signature on PKCS 10 cert requests before honoring
them.  Bug 174193.


git-svn-id: svn://10.0.0.236/trunk@132267 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-18 21:58:24 +00:00
bishakhabanerjee%netscape.com
93ae51e1cc changed error string to reflect error better: 162714
git-svn-id: svn://10.0.0.236/trunk@132199 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-18 00:13:03 +00:00
nelsonb%netscape.com
bb5ff42b98 New utility to test cert chain verification using certs in files.
git-svn-id: svn://10.0.0.236/trunk@132184 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 22:24:35 +00:00
nelsonb%netscape.com
928be21a4a Change instructions for entering a new token password to say "should"
instead of "must".  Bug 174135.


git-svn-id: svn://10.0.0.236/trunk@132127 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 02:06:31 +00:00
nelsonb%netscape.com
01270dc30d Use unsigned ints for serial numbers. Bug 173872.
Add missing line break to cert requests.  Bug 174659.
Remove unused variables, and #ifndef NSPR20 code.


git-svn-id: svn://10.0.0.236/trunk@132126 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 01:41:14 +00:00
nelsonb%netscape.com
82d1230431 Use the new quick DER decoder to decode Certificate requests, because
it does it correctly.  Fix some memory leaks in print code.
Print OCTET strings and bits strings better.


git-svn-id: svn://10.0.0.236/trunk@132067 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 05:34:54 +00:00
nelsonb%netscape.com
5d7c539c7c Eliminate a crash in pp formatting cert requests. Bug 174188.
When asking for a new password and the two values don't match, ask for
both again.  Bug 174133.


git-svn-id: svn://10.0.0.236/trunk@132053 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 01:40:22 +00:00
relyea%netscape.com
14451af148 Make grammar, punctuation, capitalization, and content changes suggested by
nelson.


git-svn-id: svn://10.0.0.236/trunk@132006 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 00:56:23 +00:00
jpierre%netscape.com
fbf29a5a7b Fix addbuiltin t add issuer & serial number to trust object
git-svn-id: svn://10.0.0.236/trunk@131853 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-12 01:00:33 +00:00
relyea%netscape.com
2a7a5dea12 Fix memory leak in vfyserv.c
git-svn-id: svn://10.0.0.236/trunk@131732 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 22:38:09 +00:00
relyea%netscape.com
58d140d4e0 Fix Cert Reference leak in error path
git-svn-id: svn://10.0.0.236/trunk@131709 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 20:34:29 +00:00
relyea%netscape.com
1e6d88b94e Add missing errors from secerr.h in lib/util
git-svn-id: svn://10.0.0.236/trunk@131707 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 20:31:25 +00:00
nelsonb%netscape.com
eee8033a61 Make indentation style self-consistent: 4 spaces per indent.
Save error code at the beginning of printCertProblems, and restore it at
the end, since CERT_VerifyCert nearly always sets the error code to
-8157 Certificate extension not found when building an error log.
Bug 172036.


git-svn-id: svn://10.0.0.236/trunk@131376 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 03:39:50 +00:00
jpierre%netscape.com
c9fe358c5a Fix for 164744 - implement new functions for pk12util . r=wtc
git-svn-id: svn://10.0.0.236/trunk@131051 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-03 03:35:32 +00:00
jpierre%netscape.com
3538f29eed Fix for 164744 - fix for pk12util to export multiple certs
git-svn-id: svn://10.0.0.236/trunk@130966 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-02 04:32:17 +00:00
wtc%netscape.com
423017db16 Bug 166772: 'cinfo' needs to be initialized to NULL. Fixed an indentation
problem.


git-svn-id: svn://10.0.0.236/trunk@130806 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 20:31:55 +00:00
wtc%netscape.com
ba3d26e6cf Bug 166781: fixed the bug that 'r2' may be used uninitialized. r=nicolson.
git-svn-id: svn://10.0.0.236/trunk@130614 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 22:22:12 +00:00
ian.mcgreer%sun.com
c91514f4dd bug 158078, unitialized variable due to a lot of unneccessary code
git-svn-id: svn://10.0.0.236/trunk@130530 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 20:30:11 +00:00
wtc%netscape.com
6ed2128237 Bug 91224: Make sure that we use Solaris ld, not GNU ld, to build NSS.
Modified Files:
	coreconf/SunOS5.mk nss/Makefile nss/cmd/platlibs.mk
	nss/lib/freebl/Makefile


git-svn-id: svn://10.0.0.236/trunk@129978 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 23:25:29 +00:00
jpierre%netscape.com
7ca9c539d6 Call NSS_Shutdown() in crlutil. Part of purifying effort
git-svn-id: svn://10.0.0.236/trunk@129837 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 23:14:54 +00:00
jpierre%netscape.com
1e94cc1160 Fix indentation
git-svn-id: svn://10.0.0.236/trunk@129826 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 21:31:28 +00:00
jpierre%netscape.com
1e1375a385 Add -r support to crlutil for multiple iterations
git-svn-id: svn://10.0.0.236/trunk@129763 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 00:28:42 +00:00
jpierre%netscape.com
9d07f69b53 Purify crlutil
Add -E option to erase all CRLs from the certificate database even if the issuer certificate is not present
Add -T option to invoke custom test code


git-svn-id: svn://10.0.0.236/trunk@129762 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 00:22:09 +00:00
wtc%netscape.com
2f4c366a9f Removed the SIGTERM signal handler, which was added to debug bug 119340.
git-svn-id: svn://10.0.0.236/trunk@129499 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 05:10:59 +00:00
wtc%netscape.com
a9ba0466f5 Bug 129701: removed the sleep command for Linux in kill_selfserv().
Instead, we try to bind to the port in a loop until the port has been
freed.  Added the -b (bindOnly) option to selfserv for this purpose.
Modified files: cmd/selfserv/selfserv.c tests/common/init.sh tests/ssl/ssl.sh


git-svn-id: svn://10.0.0.236/trunk@129045 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 13:41:21 +00:00
wtc%netscape.com
e9e683dcce Bug 136209: added the -P dbprefix option. The original -P (partial CRL
decode) option was renamed -p.


git-svn-id: svn://10.0.0.236/trunk@129033 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 04:43:04 +00:00