Return the signed attribute at index loc from a CMS SignerInfo.

Synopsis

Declared in <openssl/cms.h>

X509_ATTRIBUTE*
CMS_signed_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 signedAttrs set is queried.

loc

Zero‐based attribute index (0 .. CMS_signed_get_attr_count() ‐ 1).

Created with MrDocs