Return the unsigned attribute at an index in a CMS SignerInfo.

Synopsis

Declared in <openssl/cms.h>

X509_ATTRIBUTE*
CMS_unsigned_get_attr(
    CMS_SignerInfo const* si,
    int loc);

Return Value

Internal X509_ATTRIBUTE pointer (do not free), or NULL on error.

Parameters

Name

Description

si

SignerInfo whose unsignedAttrs are accessed.

loc

Zero‐based index in the range [0, CMS_unsigned_get_attr_count(si) ‐ 1].

Created with MrDocs