SSL_CTX_set_ssl_version(3) OpenSSL SSL_CTX_set_ssl_version(3) NNAAMMEE SSL_CTX_set_ssl_version, SSL_set_ssl_method, SSL_get_ssl_method - choose a new TLS/SSL method SSYYNNOOPPSSIISS #include int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *method); int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method); const SSL_METHOD *SSL_get_ssl_method(SSL *ssl); DDEESSCCRRIIPPTTIIOONN _S_S_L___C_T_X___s_e_t___s_s_l___v_e_r_s_i_o_n_(_) sets a new default TLS/SSL mmeetthhoodd for SSL objects newly created from this ccttxx. SSL objects already created with _S_S_L___n_e_w(3) are not affected, except when _S_S_L___c_l_e_a_r(3) is being called. _S_S_L___s_e_t___s_s_l___m_e_t_h_o_d_(_) sets a new TLS/SSL mmeetthhoodd for a particular ssssll object. It may be reset, when _S_S_L___c_l_e_a_r_(_) is called. _S_S_L___g_e_t___s_s_l___m_e_t_h_o_d_(_) returns a function pointer to the TLS/SSL method set in ssssll. NNOOTTEESS The available mmeetthhoodd choices are described in _S_S_L___C_T_X___n_e_w(3). When _S_S_L___c_l_e_a_r(3) is called and no session is connected to an SSL object, the method of the SSL object is reset to the method currently set in the corresponding SSL_CTX object. RREETTUURRNN VVAALLUUEESS The following return values can occur for _S_S_L___C_T_X___s_e_t___s_s_l___v_e_r_s_i_o_n_(_) and _S_S_L___s_e_t___s_s_l___m_e_t_h_o_d_(_): 0 The new choice failed, check the error stack to find out the rea- son. 1 The operation succeeded. SSEEEE AALLSSOO _S_S_L___C_T_X___n_e_w(3), _S_S_L___n_e_w(3), _S_S_L___c_l_e_a_r(3), _s_s_l(3), _S_S_L___s_e_t___c_o_n_- _n_e_c_t___s_t_a_t_e(3) 1.0.1u 2016-09-22 SSL_CTX_set_ssl_version(3)