[#SSL_CTX_set_ssl_version] = SSL_CTX_set_ssl_version :mrdocs: Replace the SSL_METHOD used by an SSL_CTX (deprecated). == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int SSL_CTX_set_ssl_version( xref:SSL_CTX.adoc[SSL_CTX]* ctx, xref:SSL_METHOD.adoc[SSL_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. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | SSL context whose default method is updated. | *meth* | New connection method such as TLS_method(). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#