[#SSL_CTX_set_ssl_version]
= SSL&lowbar;CTX&lowbar;set&lowbar;ssl&lowbar;version
:mrdocs:

Replace the SSL&lowbar;METHOD used by an SSL&lowbar;CTX (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
SSL&lowbar;CTX&lowbar;set&lowbar;ssl&lowbar;version(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_METHOD.adoc[SSL&lowbar;METHOD] const* meth);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose default method is updated&period;
| *meth*
| New connection method such as TLS&lowbar;method()&period;
|===


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