PKCS7_get_attribute

Return an unauthenticated attribute of type nid from a PKCS#7 signer info.

Synopsis

Declared in <openssl/pkcs7.h>

ASN1_TYPE*
PKCS7_get_attribute(
    PKCS7_SIGNER_INFO const* si,
    int nid);

Return Value

Pointer to the attribute value, or NULL if not present.

Parameters

NameDescription
siSigner info whose unauthenticated attributes are searched.
nidAttribute type NID to look up.