Read certificates from a file and return a stack of their subject names (provider‐aware).

Synopsis

Declared in <openssl/ssl.h>

stack_st_X509_NAME*
SSL_load_client_CA_file_ex(
    char const* file,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

New STACK_OF(X509_NAME) on success (caller frees with sk_X509_NAME_pop_free), or NULL on failure.

Parameters

Name

Description

file

Path to a PEM file of certificates (typically for SSL_set_client_CA_list).

libctx

Library context used when fetching algorithms from providers, or NULL for the default.

propq

Property query string for provider algorithm selection, or NULL.

Created with MrDocs