X509_LOOKUP_get_by_subject_ex_fn

Callback type that looks up a certificate or CRL by subject name, with provider selection.

Synopsis

Declared in <openssl/x509_vfy.h>

typedef int(* X509_LOOKUP_get_by_subject_ex_fn)(X509_LOOKUP*, X509_LOOKUP_TYPE, X509_NAME const*, X509_OBJECT*, OSSL_LIB_CTX*, char const*);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxLookup instance to query.
typeX509_LU_X509 or X509_LU_CRL selecting the object kind.
nameSubject name to match.
retReceives the found object on success.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for provider selection, or NULL.