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

Name

Description

si

SignerInfo whose unsignedAttrs are searched.

oid

Attribute type object identifier to match.

lastpos

Search start index; use a negative value to start from the beginning (see CMS_signed_get0_data_by_OBJ).

type

Expected ASN.1 type of the attribute value (must not be V_ASN1_BOOLEAN or V_ASN1_NULL).

Created with MrDocs