CMS_signed_get_attr_by_NID

Find a signed attribute in si by NID, searching after lastpos.

Synopsis

Declared in <openssl/cms.h>

int
CMS_signed_get_attr_by_NID(
    CMS_SignerInfo const* si,
    int nid,
    int lastpos);

Return Value

Attribute index on success, or -1 if not found / on error.

Parameters

NameDescription
siSignerInfo whose signedAttrs are searched.
nidNID of the attribute OID to locate.
lastposIndex to search after, or -1 to start from the beginning.