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

Name

Description

ctx

SSL context whose verification store is updated.

CApath

Directory of PEM certificates named by subject‐name hash (see SSL_CTX_load_verify_locations).

Created with MrDocs