[#SSL_CTX_set_trust]
= SSL&lowbar;CTX&lowbar;set&lowbar;trust
:mrdocs:

Set the default X509 trust purpose NID for certificate verification on a context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set&lowbar;trust(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int trust);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context to configure&period;
| *trust*
| Trust purpose such as X509&lowbar;TRUST&lowbar;SSL&lowbar;CLIENT or X509&lowbar;TRUST&lowbar;SSL&lowbar;SERVER&period;
|===


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