CMS_unsigned_get0_data_by_OBJ

Find an unsigned attribute by OID and return its first ASN.1 value data pointer.

Synopsis

Declared in <openssl/cms.h>

void*
CMS_unsigned_get0_data_by_OBJ(
    CMS_SignerInfo* si,
    ASN1_OBJECT* oid,
    int lastpos,
    int type);

Return Value

Pointer to the attribute value data, or NULL on error or if not found.

Parameters

NameDescription
siSignerInfo whose unsignedAttrs are searched.
oidAttribute type object identifier to match.
lastposSearch start index; use a negative value to start from the beginning (see CMS_signed_get0_data_by_OBJ).
typeExpected ASN.1 type of the attribute value (must not be V_ASN1_BOOLEAN or V_ASN1_NULL).