Commit Graph

47 Commits

Author SHA1 Message Date
relyea%netscape.com
f9427b6c6c Remove dead code.
Fix compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@103353 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 21:45:41 +00:00
relyea%netscape.com
ab5346358b Add option to reset the cert and key database.
git-svn-id: svn://10.0.0.236/trunk@102454 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:18:13 +00:00
wtc%netscape.com
c263db4585 Bugzilla bug 94685: fixed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@101738 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:52:23 +00:00
wtc%netscape.com
266995ef87 Bugzilla bug 94685: defining SECUTIL_NEW caused the wrong function
declaration (with PRFileDesc* as the first parameter) to be used and
hence a compiler warning.


git-svn-id: svn://10.0.0.236/trunk@101673 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 00:22:07 +00:00
mcgreer%netscape.com
8fbcd66ced make error return more readable
git-svn-id: svn://10.0.0.236/trunk@100760 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 16:13:13 +00:00
mcgreer%netscape.com
4065d8c61b duh. Return error % 256 (to get 255 when error is SECFailure).
git-svn-id: svn://10.0.0.236/trunk@100759 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 16:06:57 +00:00
mcgreer%netscape.com
dc81bd2915 force certutil to always return 255 on error. Make sure there is only one pointer to password callback arg.
git-svn-id: svn://10.0.0.236/trunk@100677 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-09 20:57:58 +00:00
mcgreer%netscape.com
7db7feb796 Look for the private key when listing keys.
The second part of this patch was checked in, see revision 1.28.  Yet, somehow, it never showed up.


git-svn-id: svn://10.0.0.236/trunk@100586 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-08 13:37:42 +00:00
mcgreer%netscape.com
9adc90c6da Yet Another Instance Of Needing to Send the Password Down for FIPS
git-svn-id: svn://10.0.0.236/trunk@100498 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 16:46:52 +00:00
mcgreer%netscape.com
626edc3a9e fix bug in param allocation
git-svn-id: svn://10.0.0.236/trunk@100496 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 16:35:06 +00:00
mcgreer%netscape.com
168db4e13e implement key deletion in certutil
git-svn-id: svn://10.0.0.236/trunk@100494 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 16:04:12 +00:00
mcgreer%netscape.com
ef5da79845 more FIPS fixes. it's possible the old crypto lib alloc'ed the PQG params and copied them over when creating the DSA key, otherwise this code would have never worked. It's also possible this code was never tested as-is. At any rate, the static vars go out of scope and wreak havoc later on, so alloc the memory.
git-svn-id: svn://10.0.0.236/trunk@100408 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-06 18:57:16 +00:00
mcgreer%netscape.com
6baaa25d69 another FIPS workaround
git-svn-id: svn://10.0.0.236/trunk@100407 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-06 18:19:12 +00:00
mcgreer%netscape.com
36bbd30461 more FIPS changes, keep pw context with key to avoid pw prompt
git-svn-id: svn://10.0.0.236/trunk@100400 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-06 16:01:10 +00:00
mcgreer%netscape.com
b30a322c8c fix DSA key gen
git-svn-id: svn://10.0.0.236/trunk@100230 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 21:06:38 +00:00
mcgreer%netscape.com
b564bdde7a changes to make FIPS mode work
git-svn-id: svn://10.0.0.236/trunk@100229 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 21:04:14 +00:00
mcgreer%netscape.com
1c10fbbea6 fix for 90510, listing individual certs from token
git-svn-id: svn://10.0.0.236/trunk@99806 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-24 19:26:53 +00:00
nelsonb%netscape.com
7a444e2264 Fix bug 85465. Detect EOF on stdin when reading it to seed PRNG.
Also eliminate some compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@97355 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:31:04 +00:00
kirke%netscape.com
d01533357d Bug 69582 endless loop on EOF reading Extensions
git-svn-id: svn://10.0.0.236/trunk@88316 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 21:45:33 +00:00
relyea%netscape.com
cfdefcfcde Make the public interface use a flags variable instead of a billion little
Bools.

suggested and reviewed by wtc in bug 66230


git-svn-id: svn://10.0.0.236/trunk@86731 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 02:03:03 +00:00
relyea%netscape.com
82187a130c update certutil and modutil to use the new NSS_Initialize signature.
modutil can now specify it's nocertdb paramter.

bug 64260 reviewed by wtc


git-svn-id: svn://10.0.0.236/trunk@86649 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-09 01:38:04 +00:00
mcgreer%netscape.com
c81d2c6862 bug 67132. certutil crashes on -C -x combination, deny it for now.
certutil -C was not recognizing the -a (ascii) option, implement it.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@86344 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 18:26:30 +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
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
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
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
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
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
2911c27f7a Add dynamic Library support to commands. Mark those that commands that still
need to be build with static libraries appropriately.


git-svn-id: svn://10.0.0.236/trunk@83994 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-22 17:09:07 +00:00
relyea%netscape.com
d16864a195 OpenVMS changes bug 60143
git-svn-id: svn://10.0.0.236/trunk@83384 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-07 22:25:18 +00:00
mcgreer%netscape.com
52d2b6f439 option for printing content version
git-svn-id: svn://10.0.0.236/trunk@82283 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-03 22:28:26 +00:00
wtc%netscape.com
45c91f68a1 Print NSPR and OS error codes if PR_Open fails.
git-svn-id: svn://10.0.0.236/trunk@80790 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 02:38:08 +00:00
nelsonb%netscape.com
f2d9c67c2f Fix a crash caused by using a null PRFileDesc * after PR_Open fails.
git-svn-id: svn://10.0.0.236/trunk@80638 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:16:03 +00:00
relyea%netscape.com
f47ead3b87 OS/2 build changes.
git-svn-id: svn://10.0.0.236/trunk@79631 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 17:07:22 +00:00
mcgreer%netscape.com
89954b170a include support for adding S/MIME certs to the database. this will be needed for S/MIME test code.
git-svn-id: svn://10.0.0.236/trunk@79533 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 16:22:17 +00:00
relyea%netscape.com
f2d81cda06 Fix merge problems from CVS. This version should now compile and work.
git-svn-id: svn://10.0.0.236/trunk@79361 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 21:01:53 +00:00
relyea%netscape.com
fe29703cc0 Propogate the password arg to the sign function.
git-svn-id: svn://10.0.0.236/trunk@79345 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 15:37:37 +00:00
relyea%netscape.com
47de8f7712 Fix certutil to read Certs from PKCS #11 modules. Make the 'all' option for
modules work for ListCerts and ListKeys. Allow password from file for these
options as well.


git-svn-id: svn://10.0.0.236/trunk@79180 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 21:12:13 +00:00
mcgreer%netscape.com
a945d82e5a fixes RFE from bug 49316 (will test on NT before verifying)
git-svn-id: svn://10.0.0.236/trunk@78982 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 06:43:52 +00:00
mcgreer%netscape.com
38b432fd26 moved fingerprint handling to secutil.c, see bug 45303
git-svn-id: svn://10.0.0.236/trunk@77539 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 01:06:00 +00:00
mcgreer%netscape.com
1a7dd97349 should be able to set negative offset during cert creation
git-svn-id: svn://10.0.0.236/trunk@76327 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 05:08:13 +00:00
mcgreer%netscape.com
951eff21a1 fingerprint had to handled in certutil for now since SECU_PrintCertificate receives a decoded DER. see #45303
git-svn-id: svn://10.0.0.236/trunk@74117 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:42:57 +00:00
relyea%netscape.com
743720da87 merge changes from NSS 3.0 branch to allow NT automated tests to work.
git-svn-id: svn://10.0.0.236/trunk@73533 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:25:41 +00:00
mcgreer%netscape.com
84112f1bce attempt to add token support for listing certs & keys
git-svn-id: svn://10.0.0.236/trunk@72332 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 00:38:44 +00:00
chrisk%netscape.com
040db90898 Sorted output for certutil -L
git-svn-id: svn://10.0.0.236/trunk@72054 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 22:25:40 +00:00
relyea%netscape.com
fbf05404e8 Update makefiles so NT will build. (and other platforms that don't have symbolic links)
git-svn-id: svn://10.0.0.236/trunk@65052 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 21:41:33 +00:00
relyea%netscape.com
a4d4d45374 Initial NSS Open Source checkin
git-svn-id: svn://10.0.0.236/trunk@64788 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 20:13:40 +00:00