Add a certificate to a SignedData or EnvelopedData CMS ContentInfo (transfers ownership).

Synopsis

Declared in <openssl/cms.h>

int
CMS_add0_cert(
    CMS_ContentInfo* cms,
    X509* cert);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

cms

ContentInfo of type signed data or (authenticated) enveloped data.

cert

Certificate to include; on success the caller must not free it.

Created with MrDocs