Commit Graph

622 Commits

Author SHA1 Message Date
nelsonb%netscape.com
be857c608d This patch reduces the scope of many variables in cmsutil's decode function. It frees the signer's CN string after use.
Bugscape bug 54021.  r=jpierre


git-svn-id: svn://10.0.0.236/trunk@149747 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-25 23:26:39 +00:00
nelsonb%netscape.com
64d40dd75b Implement new "batch mode" (see the -b option). Plug some leaks.
Facilitates memory leak testing of the SMIME library.
This revision combines the patches for Bugzilla bug 225513 and
Bugscape bug 53775.  r = relyea and wchang0222


git-svn-id: svn://10.0.0.236/trunk@149575 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-20 02:33:18 +00:00
wchang0222%aol.com
6dd1fdb214 Bugzilla bug 222568: fixed a bug introduced in rev. 1.54.
git-svn-id: svn://10.0.0.236/trunk@149529 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 01:38:26 +00:00
nelsonb%netscape.com
f8e9fea1e2 Fix unnecessary assertion failures occuring in SMIME testing in
debug builds only.  Partial fix for bugscape bug 53775. r=wchang0222


git-svn-id: svn://10.0.0.236/trunk@149486 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 06:16:26 +00:00
wchang0222%aol.com
c3fd04c8d8 Removed an extraneous comma (,) at the end of an enum type definition.
git-svn-id: svn://10.0.0.236/trunk@149360 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 16:15:01 +00:00
nelsonb%netscape.com
15b7b08f9e Detect empty emailAddr strings in CERTCertificates. Bugzilla bug 211540.
Modified Files:
    cmd/dbck/dbck.c cmd/signtool/util.c lib/certdb/certdb.c
    lib/certdb/stanpcertdb.c lib/pkcs7/p7decode.c lib/pki/certificate.c
    lib/pki/pki3hack.c lib/smime/cmssiginfo.c lib/softoken/pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@149330 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 00:10:01 +00:00
relyea%netscape.com
651dc7dc69 Fix windows breakage.
git-svn-id: svn://10.0.0.236/trunk@149306 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 18:06:50 +00:00
relyea%netscape.com
e15c678739 Add symkeyutil to the manifest file
git-svn-id: svn://10.0.0.236/trunk@149285 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:27:23 +00:00
relyea%netscape.com
5fe2770302 New tool to manage fixed keys in the database.
git-svn-id: svn://10.0.0.236/trunk@149284 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:26:47 +00:00
nelsonb%netscape.com
037cabbbac Fix bugzilla bug 225301. r=jpierre. This patch does the following:
1. Fixes the Usage message to document the command line options.
2. Changes the "decode" function to
   a) report an error on bad signatures, only when decoding the input file,
      not when decoding an ancillary "enveloped file".
   b) only output the contents of the "detached content" file (-c option)
      when that file's content was actually used in the computation.
3. Sundry other cleanup and added comments.


git-svn-id: svn://10.0.0.236/trunk@149271 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 23:03:12 +00:00
wchang0222%aol.com
7f3eb1098d Bugzilla bug 225373: the return value of CERT_NameToAscii must be freed
with PORT_Free.
Modified Files:
	cmd/lib/secutil.c cmd/selfserv/selfserv.c
	cmd/signver/pk7print.c cmd/strsclnt/strsclnt.c
	cmd/tstclnt/tstclnt.c lib/certdb/cert.h


git-svn-id: svn://10.0.0.236/trunk@149241 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 16:10:45 +00:00
wchang0222%aol.com
a51c8c21f8 Added a comment to note a question I had while reviewing the code.
git-svn-id: svn://10.0.0.236/trunk@149223 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 23:25:33 +00:00
jpierre%netscape.com
12f7d5ece4 Fix crash in certutil if usage is omitted
git-svn-id: svn://10.0.0.236/trunk@149132 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 00:01:32 +00:00
nelsonb%netscape.com
463a2092db Fix numerous errors (mostly off-by-1 errors) in the code that formats
and prints certs and CRLs.  This code is common to certutil and pp.
Bug 222568  r=nicholson (for this portion).


git-svn-id: svn://10.0.0.236/trunk@148808 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 02:16:42 +00:00
nelsonb%netscape.com
fb006ec133 Better cleanup. Plug leaks in pp. bug 222568. r=nicolson (this part).
git-svn-id: svn://10.0.0.236/trunk@148804 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 01:51:54 +00:00
jpierre%netscape.com
5b19d5463a Fix for 223494 - cmsutil signing does not work with hardware tokens. r=wtc, relyea
git-svn-id: svn://10.0.0.236/trunk@148458 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-28 02:34:15 +00:00
wchang0222%aol.com
e0cbb82e15 Bugzilla bug 223624: removed an extraneous format string for fprintf.
r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@148374 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-25 14:05:08 +00:00
wchang0222%aol.com
770b984788 Bugzilla bug 223624: node->error is a 'long', so it should match a %ld
format.  r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@148373 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-25 14:01:43 +00:00
wchang0222%aol.com
968ae899f4 Removed the nonexistent directory 'rngtest' from DIRS.
git-svn-id: svn://10.0.0.236/trunk@148343 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-24 06:22:58 +00:00
nelsonb%netscape.com
2800334777 Add new -N option, which completely suppresses the initialization and use
of the SSL server session ID cache.  Used to test the fix for bug 222726.


git-svn-id: svn://10.0.0.236/trunk@148121 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-19 05:18:11 +00:00
ian.mcgreer%sun.com
decc84df49 ECC code landing.
Contributed by Sheuling Chang, Stephen Fung, Vipul Gupta, Nils Gura,
and Douglas Stebila of Sun Labs


git-svn-id: svn://10.0.0.236/trunk@148060 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-17 13:45:42 +00:00
jpierre%netscape.com
e404142fda Fix for bug 222180 . remove redundant code
git-svn-id: svn://10.0.0.236/trunk@147978 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 01:40:10 +00:00
jpierre%netscape.com
e8edbab622 Fix for bug 222180 . Change to quick decoder . r=wtc
git-svn-id: svn://10.0.0.236/trunk@147977 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 01:34:22 +00:00
nelsonb%netscape.com
458f866ce8 This file has been dead code since NSS 3.4 released, if not sooner.
git-svn-id: svn://10.0.0.236/trunk@147866 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-11 01:10:51 +00:00
relyea%netscape.com
291f5c8248 Bug 203866
Make unloaded modules visible for administrative purposes.
sr=wtc r=nelson


git-svn-id: svn://10.0.0.236/trunk@147841 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-10 15:29:43 +00:00
jpierre%netscape.com
4012fce7ab Fix for bug 55898 - print name of certificate causing failure in certutil . r=wtc
git-svn-id: svn://10.0.0.236/trunk@147725 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-08 01:00:37 +00:00
nelsonb%netscape.com
a85bd7aafb Make tstclnt work with IPv6 addresses. Bug 161610.
git-svn-id: svn://10.0.0.236/trunk@147646 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 23:50:11 +00:00
nelsonb%netscape.com
1ac2b80786 Check for presence of secmod.db file prior to acting on it, for all
cases except "multiaccess:".  Bug 220217. r=relyea


git-svn-id: svn://10.0.0.236/trunk@147645 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 23:33:03 +00:00
jpierre%netscape.com
7bcb65500d Fix for bug 94413 - OCSP needs more fine tuned error messages. r=wtc
git-svn-id: svn://10.0.0.236/trunk@147449 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-30 01:18:55 +00:00
jpierre%netscape.com
607c61e1f0 Fix for bug 219539 - support GeneralizedTime in NSS tools
git-svn-id: svn://10.0.0.236/trunk@147352 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 00:01:45 +00:00
jpierre%netscape.com
3b8812e241 Fix for bug 219539 - support GeneralizedTime in NSS tools
git-svn-id: svn://10.0.0.236/trunk@147323 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-26 06:18:40 +00:00
nelsonb%netscape.com
9ae20d64bf Fix usage message to list all commands. Also, fix a few lines of
code that did not follow the file's convention for indentation.
Bug 203870.


git-svn-id: svn://10.0.0.236/trunk@147264 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 21:49:49 +00:00
nelsonb%netscape.com
a25f55c7c5 Correctly compute certificate fingerprints. Bug 220016.
git-svn-id: svn://10.0.0.236/trunk@147137 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 02:05:47 +00:00
jpierre%netscape.com
c124a4adcb Fix for 215182 - certutil prints incorrect nickname. r=wtc
git-svn-id: svn://10.0.0.236/trunk@147135 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 00:10:54 +00:00
jpierre%netscape.com
0561999feb Fix for 215214 - make certutil show all instances of certs . r=wtc
git-svn-id: svn://10.0.0.236/trunk@147013 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-18 02:00:32 +00:00
nelsonb%netscape.com
4bf96c876a Further enhance the verbose debugging command line option in tstclnt
for the case where client auth is requested by the server.  It will
now report the name of the cert sent to the server, or "send no cert".


git-svn-id: svn://10.0.0.236/trunk@146660 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-09 20:22:54 +00:00
jpierre%netscape.com
0ec89fd1ed Prevent crash if certlist is NULL
git-svn-id: svn://10.0.0.236/trunk@146643 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-09 00:54:20 +00:00
jpierre%netscape.com
01e91272d3 Fix bug 214307 - add certutil batch mode . r=wtc
git-svn-id: svn://10.0.0.236/trunk@146640 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-08 23:30:29 +00:00
nelsonb%netscape.com
dab1e74bb9 Back out rev 1.27, which turned verbose mode on by default for debugging
QA test script failures that only occurred on tinderbox machines.
bug 207313 is now fixed.


git-svn-id: svn://10.0.0.236/trunk@143202 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-02 20:39:48 +00:00
nelsonb%netscape.com
947d897f48 This patch does two things, one large and one small. Bug 207313.
1, It uses two new symbols SSOCK_FD and STDIN_FD instead of 0 and 1 to
reference members of the poll set array.  I just could never remember whether
pollset[0] was the socket or was stdin.  Now I don't have to remember.
This changes a lot of lines, but is very simple.
2. It implementa a new flag clientSpeaksFirst, set with the -f option.
The only effect of this flag is whether the value of
pollset[SSOCK_FD].in_flags is initially zero (if true) or PR_POLL_READ (if false).  Note that pollset[SSOCK_FD].in_flags is set to PR_POLL_READ after
each succesful write to the socket.


git-svn-id: svn://10.0.0.236/trunk@143147 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-01 03:01:39 +00:00
wtc%netscape.com
eee783e6a0 Bug 206926: 1. Undo the changes to secrng.h, pqgutil.h, swfutl.c,
unix_rand.c, and win_rand.c. 2. Make secrng.h and pqgutil.h private.
3. Public header pk11pqg.h can't include private header pqgutil.h.
4. Many files don't need to include secrng.h.  A few don't need to include
pqgutil.h.  5. Remove duplicate declarations of PQG_DestroyParams and
PQG_DestroyVerify from blapi.h.


git-svn-id: svn://10.0.0.236/trunk@143125 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 23:31:32 +00:00
kirk.erickson%sun.com
9f693ee885 Resolves bug 206971 - selfserv should OptimizeSpeed (use NSS_Initialize).
Both selfserv and strsclnt no longer OptimizeSpace.  Moved SECMOD_DB
defines from nssinit.c to nss.h, make it availble for public use with
NSS_Initialize().


git-svn-id: svn://10.0.0.236/trunk@143104 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 17:25:13 +00:00
nelsonb%netscape.com
e39d70b9fc Back out rev 1.28 to test some hypotheses about bug 207313.
git-svn-id: svn://10.0.0.236/trunk@143095 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 10:06:29 +00:00
nelsonb%netscape.com
234e484f1d Add -3 and -T options, with same meaning as in tstclnt and selfserv,
disabling SSL3 and TLS respectively.  With this change, the QA stress
tests that say they're testing SSL3 or TLS can finally test what they
claim they are testing.


git-svn-id: svn://10.0.0.236/trunk@143084 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-30 05:35:52 +00:00
nelsonb%netscape.com
8496cdaa88 All diagnostic output goes to stderr, not stdout. This change facilitates
investigation of bug 207313.


git-svn-id: svn://10.0.0.236/trunk@142971 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-28 02:11:17 +00:00
wtc%netscape.com
bb27a454f9 Bug 206926: certcgi.c should not include blapi.h. Use the PK11_PQG_
functions instead.


git-svn-id: svn://10.0.0.236/trunk@142970 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-28 00:47:47 +00:00
wtc%netscape.com
f3b9348e07 Checked in more temporary debugging code for the strange QA failure on
Windows.


git-svn-id: svn://10.0.0.236/trunk@142901 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-25 19:19:28 +00:00
wtc%netscape.com
daaedf6e35 Enabled verbose mode temporarily for debugging a strange QA failure on
Windows.


git-svn-id: svn://10.0.0.236/trunk@142898 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-25 04:16:03 +00:00
wtc%netscape.com
ef6c7b9e73 Bug 206926: now that secrng.h and pqgutil.h include blapit.h instead of
blapi.h, some files that include secrng.h or pqgutil.h need to include
blapi.h directly.
Modified Files: certcgi.c swfutl.c unix_rand.c win_rand.c


git-svn-id: svn://10.0.0.236/trunk@142897 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-25 01:21:27 +00:00
wtc%netscape.com
c497dd6d2d Include nss.h for the declaration of NSS_Shutdown. Use "" around prmem.h
and prio.h.


git-svn-id: svn://10.0.0.236/trunk@142883 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-24 05:23:42 +00:00