[#SSL_CTX_load_verify_file]
= SSL&lowbar;CTX&lowbar;load&lowbar;verify&lowbar;file
:mrdocs:

Load trusted CA certificates from a PEM file into an SSL context&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;load&lowbar;verify&lowbar;file(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    char const* CAfile);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose verification store is updated&period;
| *CAfile*
| Path to a PEM file containing one or more CA certificates&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
