CMS_signed_get0_data_by_OBJ

Return the first matching signed-attribute value of a given ASN.1 type.

Synopsis

Declared in <openssl/cms.h>

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

Return Value

Pointer to the attribute value data, or NULL if not found / type mismatch.

Parameters

NameDescription
siSignerInfo whose signedAttrs are searched.
oidAttribute type OID to match.
lastposIndex after which to continue searching (-1 to start from the beginning).
typeExpected ASN.1 type of the attribute value (for example V_ASN1_OCTET_STRING).