PKCS7_set0_type_other

Set a PKCS#7 content type to an ASN.1 OTHER content value, transferring ownership of other.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_set0_type_other(
    PKCS7* p7,
    int type,
    ASN1_TYPE* other);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
p7PKCS#7 structure to update.
typeNID of the content type.
otherASN.1 value describing the content; ownership transfers to p7 on success.