X509_OBJECT_idx_by_subject

Find the first X509_OBJECT in a stack whose subject matches name and type.

Synopsis

Declared in <openssl/x509_vfy.h>

int
X509_OBJECT_idx_by_subject(
    stack_st_X509_OBJECT* h,
    X509_LOOKUP_TYPE type,
    X509_NAME const* name);

Return Value

Zero-based index of the first match, or -1 if none.

Parameters

NameDescription
hStack of cached X509_OBJECT entries (typically from an X509_STORE).
typeX509_LU_X509 or X509_LU_CRL selecting certificate vs CRL objects.
nameSubject (or CRL issuer) name to match.