PKCS7_content_new

Allocate nested content of type nid and attach it to a PKCS#7 structure.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_content_new(
    PKCS7* p7,
    int nid);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
p7PKCS#7 ContentInfo that receives the new nested content.
nidNID of the content type to create (for example NID_pkcs7_data).