Find the first X509_OBJECT in a stack whose subject matches name and type.
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);
Zero-based index of the first match, or -1 if none.
| Name | Description |
|---|---|
| h | Stack of cached X509_OBJECT entries (typically from an X509_STORE). |
| type | X509_LU_X509 or X509_LU_CRL selecting certificate vs CRL objects. |
| name | Subject (or CRL issuer) name to match. |