Add a certificate to a PKCS#7 SignedData or SignedAndEnvelopedData structure.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_add_certificate(
    PKCS7* p7,
    X509* cert);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

p7

PKCS#7 object that already has a signed content type.

cert

Certificate to include; a reference is retained by p7.

Created with MrDocs