PKCS7_set_type

Set the PKCS#7 content type and allocate the corresponding content structure.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_set_type(
    PKCS7* p7,
    int type);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
p7PKCS#7 object to initialise.
typeContent-type NID such as NID_pkcs7_signed or NID_pkcs7_enveloped.