SSL_CTX_load_verify_dir

Load trusted CA certificates from a hashed directory into an SSL context.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_load_verify_dir(
    SSL_CTX* ctx,
    char const* CApath);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxSSL context whose verification store is updated.
CApathDirectory of PEM certificates named by subject-name hash (see SSL_CTX_load_verify_locations).