Attach an S/MIME capabilities attribute to a PKCS#7 signer info.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_add_attrib_smimecap(
    PKCS7_SIGNER_INFO* si,
    stack_st_X509_ALGOR* cap);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

si

Signer info that receives the SMIMECapabilities signed attribute.

cap

Stack of X509_ALGOR capability descriptors (for example from PKCS7_simple_smimecap).

Created with MrDocs