X509at_get_attr_by_OBJ

Find the next attribute in a stack whose OID equals obj.

Synopsis

Declared in <openssl/x509.h>

int
X509at_get_attr_by_OBJ(
    stack_st_X509_ATTRIBUTE const* sk,
    ASN1_OBJECT const* obj,
    int lastpos);

Return Value

Index of the matching attribute, or -1 if not found.

Parameters

NameDescription
skAttribute stack to search, or NULL.
objObject identifier to match.
lastposIndex after which to search (-1 to start from the beginning).