[#SSL_CTX_set_purpose]
= SSL&lowbar;CTX&lowbar;set&lowbar;purpose
:mrdocs:

Set the X509 purpose on an SSL context&apos;s verification parameters&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;purpose(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int purpose);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose X509&lowbar;VERIFY&lowbar;PARAM purpose is updated&period;
| *purpose*
| Purpose identifier (see X509&lowbar;PURPOSE&lowbar;&ast; &sol; X509&lowbar;VERIFY&lowbar;PARAM&lowbar;set&lowbar;purpose)&period;
|===


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