Return the first matching signed-attribute value of a given ASN.1 type.
Declared in <openssl/cms.h>
void*
CMS_signed_get0_data_by_OBJ(
CMS_SignerInfo const* si,
ASN1_OBJECT const* oid,
int lastpos,
int type);
Pointer to the attribute value data, or NULL if not found / type mismatch.
| Name | Description |
|---|---|
| si | SignerInfo whose signedAttrs are searched. |
| oid | Attribute type OID to match. |
| lastpos | Index after which to continue searching (-1 to start from the beginning). |
| type | Expected ASN.1 type of the attribute value (for example V_ASN1_OCTET_STRING). |