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

Name

Description

sk

Stack of certificates to search.

name

Subject distinguished name to match.

Created with MrDocs