60 Commits

Author SHA1 Message Date
julien.pierre.boogz%sun.com
b073a231dd 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@253478 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-08 23:48:12 +00:00
julien.pierre.bugs%sun.com
3d5bc5fab1 Fix for bug 177184 . NSS_CMSDecoder_Cancel might have a leak . And this patch might fix it, or not. But this bug needs to be put to rest.
git-svn-id: svn://10.0.0.236/trunk@206632 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-05 01:19:23 +00:00
julien.pierre.bugs%sun.com
e86a1babe6 Fix for 265504 - cmsutil dumps core with invalid option set. r=wtc
git-svn-id: svn://10.0.0.236/trunk@164221 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-22 22:39:47 +00:00
julien.pierre.bugs%sun.com
c35c22f7da Remove unused variable
git-svn-id: svn://10.0.0.236/trunk@163345 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-07 04:04:25 +00:00
wchang0222%aol.com
d8ea205bcc Bugscape bug 57081: If the make variable NISCC_TEST is defined at build
time, add -DNISCC_TEST to the compile command line.  The NISCC_TEST macro
enables special code that's conditionally compiled for NISCC testing.
Modified Files:
	cmd/smimetools/Makefile cmd/smimetools/cmsutil.c
	lib/ssl/config.mk lib/ssl/manifest.mn


git-svn-id: svn://10.0.0.236/trunk@156332 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 01:29:15 +00:00
gerv%gerv.net
62b0f34e77 Bug 236613: change to MPL/LGPL/GPL tri-license. Restore Id: lines.
git-svn-id: svn://10.0.0.236/trunk@155606 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-27 23:04:40 +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
0746781e5c Fix S/MIME bugs that caused parallel arrays of digest OIDs and digest
values to become out of sync.  Bugscape bug 54256. r=relyea.
Modified Files:	cmd/smimetools/cmsutil.c lib/smime/cmsdigest.c


git-svn-id: svn://10.0.0.236/trunk@150271 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-12 23:55:06 +00:00
nelsonb%netscape.com
622affd4b9 Add new -k option to NSS QA test program cmsutil. By default, cmsutil
will no longer add any decoded certs to the cert db file, which is
useful for reproducibility of results in QA scripts.
Bugscape bug 54293. r=relyea,jpierre,wtc


git-svn-id: svn://10.0.0.236/trunk@150097 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-06 06:31:08 +00:00
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
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
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
bishakhabanerjee%netscape.com
d6412757ef checking return value of NSS_Shutdown - bug 171263
git-svn-id: svn://10.0.0.236/trunk@140494 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:13:50 +00:00
thayes%netscape.com
1b54ba57d9 Bug 192639: Use utility functions for managing token passwords so that
cmsutil will prompt for the value if it is not given on the command line.
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@137964 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-19 00:39:39 +00:00
wtc%netscape.com
23826d1288 Bug 145029: fixed compiler warnings (mostly "xxx might be used
uninitialized").


git-svn-id: svn://10.0.0.236/trunk@136476 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 02:49:11 +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
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
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
nicolson%netscape.com
4b34ca8158 Fix 164126: makefile build error.
Change the NSS module name from "security" to "nss".


git-svn-id: svn://10.0.0.236/trunk@128961 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 16:38:56 +00:00
wtc%netscape.com
16ce983004 Bugs 166734 and 166785: fixed compiler warnings reported by gcc on Linux.
The patch for this checkin is attached to bug 166785.


git-svn-id: svn://10.0.0.236/trunk@128926 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 00:27:52 +00:00
kaie%netscape.com
171583bc21 b=107034 OE requires special attribute in incoming signed messages to support dual key certificates. Add new function
NSS_CMSSignerInfo_AddMSSMIMEEncKeyPrefs.
r=relyea


git-svn-id: svn://10.0.0.236/trunk@128249 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 13:14:42 +00:00
kaie%netscape.com
0a8bd297cb Backing myself out, since it didn't compile on Win32, and I would like to discuss the correct fix.
git-svn-id: svn://10.0.0.236/trunk@128188 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-27 00:05:11 +00:00
kaie%netscape.com
8ceba8cca5 b=107034 OE requires special attribute in incoming signed messages to support dual key certificates. Add new function
NSS_CMSSignerInfo_AddMSSMIMEEncKeyPrefs.
r=relyea


git-svn-id: svn://10.0.0.236/trunk@128165 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 21:34:31 +00:00
relyea%netscape.com
50406c66c5 Bug 133584: Fix reference leaks which prevent shutdown in NSS and in the tests.
Debug builds can verify correct operation by setting NSS_STRICT_SHUTDOWN, which
will cause an assert if shutdown is called but not all the modules are freed (which
means a slot, key, or cert reference has been leaked).


git-svn-id: svn://10.0.0.236/trunk@118866 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-12 19:05:21 +00:00
wtc%netscape.com
4d2eddeffb Bugzilla bug 131078: fixed compiler warnings. r=mcgreer.
git-svn-id: svn://10.0.0.236/trunk@116631 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 06:07:41 +00:00
jpierre%netscape.com
0537050ef1 Code formatting patch to support legacy text editors
git-svn-id: svn://10.0.0.236/trunk@109954 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 02:09:45 +00:00
jpierre%netscape.com
0634c586ca Fix for 108097 - allow cmsutil to work with dual-key certs for signing and encrypting
git-svn-id: svn://10.0.0.236/trunk@109895 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 23:19:41 +00:00
jpierre%netscape.com
d4339da176 Improve error handling in cmsutil - don't proceed when error occurs, and display more information about failures using SECU_PrintError
git-svn-id: svn://10.0.0.236/trunk@109797 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 03:19:22 +00:00
jpierre%netscape.com
da95debbe0 Fix for 95264 - add more info in s/mime script
git-svn-id: svn://10.0.0.236/trunk@108723 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:37:12 +00:00
mcgreer%netscape.com
ad69ea5b14 fix for 92962, need to chomp newline at end of message body.
git-svn-id: svn://10.0.0.236/trunk@100660 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-09 13:30:44 +00:00
relyea%netscape.com
396a9316a6 Change structure passing to pointer passing.
removed debugging printf's


git-svn-id: svn://10.0.0.236/trunk@90269 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 19:33:59 +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
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
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
mcgreer%netscape.com
256ae931c7 dump usage before doing anything when no args passed, bug 63520
git-svn-id: svn://10.0.0.236/trunk@83957 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-21 22:14:02 +00:00
mcgreer%netscape.com
d3ac6ff28c certs-only does not require input
git-svn-id: svn://10.0.0.236/trunk@83676 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-14 23:59:33 +00:00
mcgreer%netscape.com
95e43bf5fa cmsutil was broken for STDIN input
git-svn-id: svn://10.0.0.236/trunk@83486 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-11 18:42:58 +00:00
mcgreer%netscape.com
f37b3872a2 fix debug output so it doesn't crash
git-svn-id: svn://10.0.0.236/trunk@83380 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-07 18:38:27 +00:00
mcgreer%netscape.com
323f81b560 still more debug output
git-svn-id: svn://10.0.0.236/trunk@83332 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-06 22:35:52 +00:00
mcgreer%netscape.com
3e40898168 add some debug output to try and track down HP64 QA problem
git-svn-id: svn://10.0.0.236/trunk@83292 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-05 23:58:01 +00:00
wtc%netscape.com
2e3c2cc514 Fixed the comment.
git-svn-id: svn://10.0.0.236/trunk@80915 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 07:21:38 +00:00
mcgreer%netscape.com
5fbd7e283b also do binary on stdout DER
git-svn-id: svn://10.0.0.236/trunk@80914 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 07:12:45 +00:00
mcgreer%netscape.com
cf3a7c75cb binary output always, for now
git-svn-id: svn://10.0.0.236/trunk@80913 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 07:04:30 +00:00
mcgreer%netscape.com
fff90deec0 fix output of DER's on windows
git-svn-id: svn://10.0.0.236/trunk@80912 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 06:52:06 +00:00
nelsonb%netscape.com
9f8a17787d In lib/smime, detect null pointers returned by various functions.
Christian Kaiser fixed the test script to pass the right directory name
to the test program.  The test script echoes all the cmsutil test
commands so that the error messages are associated with the proper one.
And cmsutil now puts its name on the front of its error messages.


git-svn-id: svn://10.0.0.236/trunk@80613 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 23:26:12 +00:00
nelsonb%netscape.com
c9723eb5f8 Call NSS_InitReadWrite instead of SECU_PKCS11Init, and check the result
for success.  Fixes a crash.  If it turns out that cmsutil doesn't need
to modifiy the cert and/or key DBs, then it should call NSS_Init, instead.


git-svn-id: svn://10.0.0.236/trunk@80599 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 21:45:01 +00:00
mcgreer%netscape.com
187b6f59de checked in wrong fix.
git-svn-id: svn://10.0.0.236/trunk@80409 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 02:41:09 +00:00