Find the next attribute in a stack whose OID equals obj.
Declared in <openssl/x509.h>
int
X509at_get_attr_by_OBJ(
stack_st_X509_ATTRIBUTE const* sk,
ASN1_OBJECT const* obj,
int lastpos);
Index of the matching attribute, or -1 if not found.
| Name | Description |
|---|---|
| sk | Attribute stack to search, or NULL. |
| obj | Object identifier to match. |
| lastpos | Index after which to search (-1 to start from the beginning). |