98 Commits

Author SHA1 Message Date
nelson%bolyard.com
d75e071b87 Bug 491044: Remove support for VMS (a.k.a., OpenVMS) from NSS, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257408 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 02:34:15 +00:00
emaldona%redhat.com
731a6e7915 [449332, r=nelson] SECU_ParseCommandLine checks input for duplicate options and fixed such duplicate in pk12util
git-svn-id: svn://10.0.0.236/trunk@257184 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-13 23:51:54 +00:00
nelson%bolyard.com
48f944d595 Bug 488550: crash in certutil or pp when printing cert with empty subject name
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256930 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 20:46:13 +00:00
nelson%bolyard.com
5e66500000 Back out preceding change to this file. It broken test scripts that require
quotes in the command output. :(


git-svn-id: svn://10.0.0.236/trunk@256548 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 08:46:24 +00:00
nelson%bolyard.com
09acd20518 Bug 480509: Improper character escaping and unescaping in alg1485.c & secname.c
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256547 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 07:30:11 +00:00
nelson%bolyard.com
80b9a23230 fix const errors in NSS for bug #469944, r=wtc
git-svn-id: svn://10.0.0.236/trunk@256231 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-16 03:47:21 +00:00
julien.pierre.boogz%sun.com
24d774762f Fix for bug 455556 . Fixed size buffers used with PR_FormatTime can be too small . r=wtc
git-svn-id: svn://10.0.0.236/trunk@254545 18797224-902f-48f8-a5cc-f745e15eee43
2008-10-06 23:37:56 +00:00
nelson%bolyard.com
dffd523ebd Bug 384459, ignore issuer and serial number components of authority key ID
extension when they don't match.  Don't report them in certutil either.
r=rrelyea, sr=wtc


git-svn-id: svn://10.0.0.236/trunk@253178 18797224-902f-48f8-a5cc-f745e15eee43
2008-07-22 02:40:11 +00:00
nelson%bolyard.com
c5913d4d8f Bug 436957: Fix decoding in CERT_DecodeCRLDistributionPoints, r=julien.pierre
Modified Files:
	cmd/lib/secutil.c cmd/lib/secutil.h tests/cert/certext.txt
 	lib/certhigh/xcrldist.c


git-svn-id: svn://10.0.0.236/trunk@252477 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-20 21:14:27 +00:00
julien.pierre.boogz%sun.com
bef7939eeb Fix for bug 423839 . Add multiple PKCS#11 token password command line option to NSS tools . r=nelson
git-svn-id: svn://10.0.0.236/trunk@252384 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-16 20:23:00 +00:00
nelson%bolyard.com
ae6c9f82e5 Back out last checkin, which introduced crashes in pk12util. Sheriff Nelson
git-svn-id: svn://10.0.0.236/trunk@252306 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-13 05:28:55 +00:00
julien.pierre.boogz%sun.com
489d8ded57 Fix for bug 423839 . Add multiple PKCS#11 token password command line option to NSS tools. r=nelson
git-svn-id: svn://10.0.0.236/trunk@252298 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-12 21:16:58 +00:00
nelson%bolyard.com
7a6dd3c6f5 Bug 420212: Empty cert DNs handled badly, display as "!INVALID AVA!"
r=kengert


git-svn-id: svn://10.0.0.236/trunk@246940 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-03 19:43:28 +00:00
julien.pierre.boogz%sun.com
ff91b65496 Fix for bug 369144 . certutil needs option to generate SubjectKeyID extension. r=nelson
git-svn-id: svn://10.0.0.236/trunk@245804 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-16 01:17:45 +00:00
alexei.volkov.bugs%sun.com
33f134aa7e 412468 - modify vfychain and vfyserv utilities to use CERT_PKIXVerifyCert function. r=julien
git-svn-id: svn://10.0.0.236/trunk@245742 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-14 23:44:45 +00:00
nelson%bolyard.com
34085f42ad Bug 401928 - Support generalized PKCS#5 v2 PBEs. r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@245666 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-14 03:04:33 +00:00
alexei.volkov.bugs%sun.com
f4fcd66b3e 412468 - modify vfychain and vfyserv utilities to use CERT_PKIXVerifyCert function. r=nelson
git-svn-id: svn://10.0.0.236/trunk@245432 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-11 22:51:01 +00:00
nelson%bolyard.com
c11b441f52 Bug 396322, Fix secutil's code and NSS tools that print public keys
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@236638 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-25 03:46:23 +00:00
neil.williams%sun.com
6e1754b6f2 Bug 390973, Add long option names to SECU_ParseCommandLine (reopened)
r=Nelson, Bob Relyea


git-svn-id: svn://10.0.0.236/trunk@236470 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 19:51:05 +00:00
nelson%bolyard.com
7cf512f686 Bug 396256 - certutil and pp do not print all the GeneralNames in a
CRLDP extension, r=neil.williams


git-svn-id: svn://10.0.0.236/trunk@236329 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 22:42:38 +00:00
neil.williams%sun.com
55267bad96 Bug 390973, Add long option names to SECU_ParseCommandLine
r=nelson


git-svn-id: svn://10.0.0.236/trunk@233442 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-30 22:40:23 +00:00
rrelyea%redhat.com
8563dfd635 bug 217538: shared database support... changes to cmd.
cmd changes are as follows:
1) fix a bug in blapitest.c
2) enable certutil to change the password on a database on the command line.
3) remove the explicit tests for cert and key databases in modutil and signtool.


git-svn-id: svn://10.0.0.236/trunk@227929 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 23:24:19 +00:00
nelson%bolyard.com
5d54f1ef06 Bug 371470 – vfychain needs option to verify for specific date, r=neil,julien
git-svn-id: svn://10.0.0.236/trunk@225508 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-03 04:18:19 +00:00
alexei.volkov.bugs%sun.com
11990ac0ef 279085: NSS tools display public exponent as negative number. r=nelson
git-svn-id: svn://10.0.0.236/trunk@218039 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-09 00:56:28 +00:00
alexei.volkov.bugs%sun.com
ec174298df 341114: Coverity 517 SECU_ParseCommandLine leaks optstate. r=nelson
git-svn-id: svn://10.0.0.236/trunk@212882 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-29 20:15:47 +00:00
nelson%bolyard.com
80ba0291f4 Remove dead function SECU_GetPBEPassword from nss/cmd/lib/secutil.*
Patch contributed by Jon Smirl <jonsmirl@gmail.com>
Coverity CID 516. Bug 337081.  r=nelson@bolyard.com


git-svn-id: svn://10.0.0.236/trunk@203050 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-19 00:25:03 +00:00
alexei.volkov.bugs%sun.com
f2211c150e [Bug 325307] infinite loop in SECU_FindCrlIssuer. r=julien
git-svn-id: svn://10.0.0.236/trunk@188734 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 02:45:02 +00:00
nelsonb%netscape.com
f4e78cc1e3 Don't crash when printing an ASN.1 NULL primitive with a NULL prefix
string.  Bug 309651. r=wtchang.


git-svn-id: svn://10.0.0.236/trunk@180832 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-22 22:45:32 +00:00
julien.pierre.bugs%sun.com
29cdb8de2c Fix for 292390. NSS tools with missing command-line operands cause crash. r=nelson
git-svn-id: svn://10.0.0.236/trunk@180597 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-19 20:59:46 +00:00
alexei.volkov.bugs%sun.com
775e2d0de9 Fix for bug 265003: Add CRL generation to crlutil. Reviewed JP+
git-svn-id: svn://10.0.0.236/trunk@172015 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-12 02:24:17 +00:00
julien.pierre.bugs%sun.com
eb6e6a3677 Remove unused variable
git-svn-id: svn://10.0.0.236/trunk@171508 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-02 06:52:04 +00:00
nelsonb%netscape.com
663a4f528b Correctly print cert request attributes in pp. Bug 284191. r=neil.williams
git-svn-id: svn://10.0.0.236/trunk@170338 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 01:20:04 +00:00
nelsonb%netscape.com
0ce29ee8bb Fix bugzilla bug 261496. Absent OPTIONAL CHOICEs should not cause fatal
errors.  Fix printing code to not crash on missing optional nextUpdate.
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@162858 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-27 22:41:41 +00:00
ian.mcgreer%sun.com
f7fd7e85b4 bug 180268, reimplement ssl step-up for builtins
git-svn-id: svn://10.0.0.236/trunk@156475 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-17 20:08:38 +00:00
gerv%gerv.net
43cb9e1492 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155484 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-25 15:03:26 +00:00
nelsonb%netscape.com
f887f9cc12 Import base64 encoded certificate files with old MAC line endings.
Bug 221272. sr=wtc.


git-svn-id: svn://10.0.0.236/trunk@152828 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-16 23:52:46 +00:00
wchang0222%aol.com
0a475ff33e Removed unused function _OS_SELECT for AIX. Thanks to Philip K. Warren
<pkw@us.ibm.com> for reporting this.


git-svn-id: svn://10.0.0.236/trunk@152746 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-13 03:13:04 +00:00
nelsonb%netscape.com
14340b9719 Bug 132942. r=wtc
Make the following enhancements to NSS's ASN.1 printing code:
- Print warning messages that are properly indendented.
- PrintAsHex notices when the buffer contains entirely printable characters, and is larger than an int, and prints it as text in that case.
- PrintRawString now indents the string, rather than always printing it on
a separate line.
- now prints decoded bit strings
- now prints BMP (UCS2) strings as strings (not as hex) when they contain only printable ASCII characters.
- now prints Universal (UCS4) Strings as strings (not hex) when they contain only printable ASCII characters.
- Decodes certain encoded data that was previously printed as hex.
- Generically decodes ASN.1 data, rather than merely printing an error, when the ASN.1 data doesn't fit a known template.
- properly handles all optional components of basic constraints extensions.
- Prints the names of the bits in the X509 Key Usage extension.
- Prints General Names.
- Print Auth Key ID extensions
- Print subject and issuer alt name extensions
- Print CRL distribution points extensions
- format and print name constraints extensions
- print Authority Information Access extensions
- Print optional X509v2 subject and issuer Unique ID bit strings


git-svn-id: svn://10.0.0.236/trunk@152050 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:45:20 +00:00
nelsonb%netscape.com
846d2916ab Use the results from PK11_ProtectedAuthenticationPath(slot) in the
password callback function.  Bug 229023. r=relyea.  verified by submittor.


git-svn-id: svn://10.0.0.236/trunk@151613 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 00:18:59 +00:00
nelsonb%netscape.com
69385e6714 Fix double free introduced in rev 1.54. r=wtc. bug 230774.
Bug occurs only in NSS utilities that import base64 encoded files, e.g.
with the -a option.


git-svn-id: svn://10.0.0.236/trunk@151282 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 01:19:26 +00:00
wchang0222%aol.com
ec4b0c5de7 Removed unused variable 'val'.
git-svn-id: svn://10.0.0.236/trunk@150701 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-23 21:40:52 +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
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
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
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
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
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
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
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