43 Commits

Author SHA1 Message Date
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
mcgreer%netscape.com
20f38c11e2 fix for bug #55190. Some 64-bit platforms will not return an alloc'ed pointer from an undeclared function.
git-svn-id: svn://10.0.0.236/trunk@80404 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:39:35 +00:00
mcgreer%netscape.com
2feef2ae49 brutish changes to get encrypted data working, will clean up later. allows test script for 3.1 to work.
git-svn-id: svn://10.0.0.236/trunk@80152 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 16:37:29 +00:00
chrisk%netscape.com
00f892196c Fix bug # 53221: Call RNG_SystemInfoForRNG to provide RNG with enough
entropy for proper operation.


git-svn-id: svn://10.0.0.236/trunk@79538 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 19:34:46 +00:00
chrisk%netscape.com
d8ac3852c6 Added -d option
-p option now also works for decoding


git-svn-id: svn://10.0.0.236/trunk@73802 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 00:57:39 +00:00
chrisk%netscape.com
04c4ea3f80 Added and corrected some comments
Added $layercounter
Clarified $boundary generation (a boundary has leading AND trailing CRLFs!)


git-svn-id: svn://10.0.0.236/trunk@73081 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 18:37:33 +00:00
chrisk%netscape.com
2b65c3df83 Preliminary checkin at a state where smime can parse messages generated
by itself.


git-svn-id: svn://10.0.0.236/trunk@73076 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 16:40:31 +00:00
chrisk%netscape.com
0cffe12987 Add code for generation of SMIMEProfile and SMIMEKeyEncryptionPreference
git-svn-id: svn://10.0.0.236/trunk@72663 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:28:59 +00:00
chrisk%netscape.com
d8f1264a7c Add generation of SMIMECapabilities
git-svn-id: svn://10.0.0.236/trunk@72242 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 23:17:52 +00:00
chrisk%netscape.com
3e04f59f9a canonicalization step adds CRs to LFs only of there are no CRs present.
git-svn-id: svn://10.0.0.236/trunk@72239 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 23:15:06 +00:00
chrisk%netscape.com
c97a690adc Merge smimetk_branch to tip...
git-svn-id: svn://10.0.0.236/trunk@72136 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 21:56:37 +00:00