SSL_CTX_load_verify_locations

Specifies the locations for ctx, at which CA certificates for verification purposes are located. The certificates available via CAfile and CApath are trusted.

When looking up CA certificates, the OpenSSL library will first search the certificates in CAfile, then those in CApath.

extern (C)
int
SSL_CTX_load_verify_locations
(,
const(char*) CAfile
,
const(char*) CApath
)

Parameters

ctx SSL_CTX*

the CTX

CAfile const(char*)

pointer to a file of CA certificates in PEM format, or null. The file can containe several CA certificates.

CApath const(char*)

a directory containing CA certificates in PEM format

Return Value

Type: int

0 if the operation fails, 1 if the operation was successful

Meta