SMIME_read_PKCS7(3) | LibreSSL | SMIME_read_PKCS7(3) |
NAME
SMIME_read_PKCS7 - parse S/MIME message.DESCRIPTION
SMIME_read_PKCS7() parses a message in S/MIME format.NOTES
If *bcont is not NULL then the message is clear text signed. *bcont can then be passed to PKCS7_verify() with the PKCS7_DETACHED flag set.BIO *cont = NULL;
PKCS7 *p7;
p7 = SMIME_read_PKCS7(in, &cont);
BUGS
The MIME parser used by SMIME_read_PKCS7() is somewhat primitive. While it will handle most S/MIME messages more complex compound formats may not work.RETURN VALUES
SMIME_read_PKCS7() returns a valid PKCS7 structure or NULL is an error occurred. The error can be obtained from ERR_get_error(3).SEE ALSO
ERR_get_error(3), PKCS7_type(3) SMIME_read_PKCS7(3), PKCS7_sign(3), PKCS7_verify(3), PKCS7_encrypt(3) PKCS7_decrypt(3)HISTORY
SMIME_read_PKCS7() was added to OpenSSL 0.9.52015-10-26 | LibreSSL |