SSL_CTX_set_ssl_version 3 2008-05-09 0.9.9-dev OpenSSL

NAME

SSL_CTX_set_ssl_version, SSL_set_ssl_method, SSL_get_ssl_method - choose a new TLS/SSL method

LIBRARY

libcrypto, -lcrypto

SYNOPSIS


 #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);

DESCRIPTION

_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.

NOTES

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.

RETURN VALUES

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 reason.
1 The operation succeeded.

SEE ALSO

_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)