Parse an S/MIME message into an ASN.1 structure described by it (flags=0).

Synopsis

Declared in <openssl/asn1.h>

ASN1_VALUE*
SMIME_read_ASN1(
    BIO* bio,
    BIO** bcont,
    ASN1_ITEM const* it);

Return Value

Parsed ASN1_VALUE, or NULL on error.

Parameters

Name

Description

bio

BIO that supplies the S/MIME input.

bcont

If non‐NULL, set to a memory BIO holding cleartext signed content, or NULL when absent.

it

Item descriptor such as ASN1_ITEM_rptr(CMS_ContentInfo) or ASN1_ITEM_rptr(PKCS7).

Created with MrDocs