Is it possible to detect S/MIME content types (enveloped or signed) using OpenSSL CMS API? I would prefer to avoid pre-parsing S/MIME headers and let OpenSSL to detect whether message is signed or encrypted.
I'm looking for a method that would extract smime-type from CMS_ContentInfo.