summaryrefslogtreecommitdiffstats
path: root/apps/cms.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-06-19 13:39:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-06-19 13:39:30 +0000
commit020091406ce85661ccec8f663c42f3c710340a6b (patch)
treefec04629410caa42f2e766418c07d59860dd0bc4 /apps/cms.c
parentad880dc469b1e893d6f3bdbf6da791709b4a65a0 (diff)
oops, add -debug_decrypt option which was accidenatally left out
Diffstat (limited to 'apps/cms.c')
-rw-r--r--apps/cms.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/cms.c b/apps/cms.c
index d754140987..5f77f8fbb0 100644
--- a/apps/cms.c
+++ b/apps/cms.c
@@ -233,6 +233,8 @@ int MAIN(int argc, char **argv)
else if (!strcmp(*args,"-camellia256"))
cipher = EVP_camellia_256_cbc();
#endif
+ else if (!strcmp (*args, "-debug_decrypt"))
+ flags |= CMS_DEBUG_DECRYPT;
else if (!strcmp (*args, "-text"))
flags |= CMS_TEXT;
else if (!strcmp (*args, "-nointern"))
@@ -1039,6 +1041,8 @@ int MAIN(int argc, char **argv)
ret = 4;
if (operation == SMIME_DECRYPT)
{
+ if (flags & CMS_DEBUG_DECRYPT)
+ CMS_decrypt(cms, NULL, NULL, NULL, NULL, flags);
if (secret_key)
{