Create a recipient info from x509 and add it to enveloped or signed‐and‐enveloped PKCS#7 p7.

Synopsis

Declared in <openssl/pkcs7.h>

PKCS7_RECIP_INFO*
PKCS7_add_recipient(
    PKCS7* p7,
    X509* x509);

Return Value

The new PKCS7_RECIP_INFO on success, or NULL on failure.

Parameters

Name

Description

p7

PKCS#7 EnvelopedData or SignedAndEnvelopedData to update.

x509

Recipient certificate whose public key encrypts the content‐encryption key.

Created with MrDocs