Populate a PKCS#7 recipient info from a recipient certificate.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_RECIP_INFO_set(
    PKCS7_RECIP_INFO* p7i,
    X509* x509);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

p7i

RecipientInfo structure to fill (issuer/serial and encrypted‐key algorithm).

x509

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

Created with MrDocs