PKCS7_add_recipient_info

Add a recipient info structure to a PKCS#7 enveloped-data object.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_add_recipient_info(
    PKCS7* p7,
    PKCS7_RECIP_INFO* ri);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
p7PKCS#7 object of type enveloped or signed-and-enveloped data.
riRecipient info to append; on success ownership transfers to p7.