CMS_unsigned_get_attr_by_OBJ

Find an unsigned attribute by ASN.1 object in a CMS SignerInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_unsigned_get_attr_by_OBJ(
    CMS_SignerInfo const* si,
    ASN1_OBJECT const* obj,
    int lastpos);

Return Value

Attribute index, or -1 if not found.

Parameters

NameDescription
siSignerInfo whose unsignedAttrs are searched.
objAttribute type OID to match.
lastposIndex after which to continue searching (-1 to start from the beginning).