PKCS7_get_octet_string.3ossl - Man Page

return octet string from a PKCS#7 envelopedData structure

Synopsis

 #include <openssl/pkcs7.h>

 ASN1_OCTET_STRING *PKCS7_get_octet_string(PKCS7 *p7);

Description

PKCS7_get_octet_string() returns a pointer to an ASN1 octet string from a PKCS#7 envelopedData structure or NULL if the structure cannot be parsed.

Notes

As the 0 implies, PKCS7_get_octet_string() returns internal pointers which should not be freed by the caller.

Return Values

PKCS7_get_octet_string() returns an ASN1_OCTET_STRING pointer.

See Also

PKCS7_type_is_data(3)

Referenced By

migration_guide.7ossl(7), PKCS7_type_is_other.3ossl(3).

2021-09-09 3.0.0 OpenSSL