X509_find_by_subject

Find the first certificate in a stack whose subject name equals name.

Synopsis

Declared in <openssl/x509.h>

X509*
X509_find_by_subject(
    stack_st_X509* sk,
    X509_NAME const* name);

Return Value

Matching X509 from sk (do not free), or NULL if none matches.

Parameters

NameDescription
skStack of certificates to search.
nameSubject distinguished name to match.