diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-02-13 22:15:56 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-02-13 22:15:56 +0000 |
commit | f3b8b34a882a09ff73facc4c6ce7cdcad59b8656 (patch) | |
tree | 79d6c350c61cb2c6055ac3b21d94c152a09b44ff /apps/cms.c | |
parent | 451758c6115bda75e299808f60c4403de86398a8 (diff) |
Diffstat (limited to 'apps/cms.c')
-rw-r--r-- | apps/cms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/cms.c b/apps/cms.c index d754140987330..5f77f8fbb03f1 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) { |