oops, add -debug_decrypt option which was accidenatally left out
authorDr. Stephen Henson <steve@openssl.org>
Tue, 19 Jun 2012 13:38:47 +0000 (13:38 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 19 Jun 2012 13:38:47 +0000 (13:38 +0000)
apps/cms.c

index d15925a59f00be9448251e87d4c75c2b6ba70fd7..916fee475a8e2ec0d6d6bc82e8a1eb298cd1112f 100644 (file)
@@ -232,6 +232,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")) 
@@ -1020,6 +1022,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)
                        {