I have a PKCS#7 of the type NID_pkcs7_enveloped. As far as I can see, this type covers both a "signed and encrypted" PKCS#7 and a PKCS#7 that just contains encrypted text (not signed).
In my app. I do a: int iStatus = PKCS7_decrypt(p7, pKeyCopy, pCertCopy, bioNewP7, iFlags); This works fine......the encryption is "stripped" and the bioNewP7 now contains either: 1) The plain text (if the PKCS#7 was just encrypted). 2) A MIME encoded text with a signed PKCS#7 (if the PKCS#7 was signed and encrypted). My question is: How do I know what the bioNewP7 now contains? If it is just a text I don't have to do anything further, but if it is a MIME encoded PKCS#7 I have to do a: PKCS7* p7Signed = sSMIME_read_PKCS7(bioNewP7, NULL); ....and then parse this new PKCS#7 to get the text. Thanks, Kim Hellan KMD / KMD-CA http://www.kmd-ca.dk Mailto:[EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
