1SSL_CTX_set_ssl_version(3) OpenSSL SSL_CTX_set_ssl_version(3)
2
3
4
6 SSL_CTX_set_ssl_version, SSL_set_ssl_method, SSL_get_ssl_method -
7 choose a new TLS/SSL method
8
10 #include <openssl/ssl.h>
11
12 int SSL_CTX_set_ssl_version(SSL_CTX *ctx, SSL_METHOD *method);
13 int SSL_set_ssl_method(SSL *s, SSL_METHOD *method);
14 SSL_METHOD *SSL_get_ssl_method(SSL *ssl);
15
17 SSL_CTX_set_ssl_version() sets a new default TLS/SSL method for SSL
18 objects newly created from this ctx. SSL objects already created with
19 SSL_new(3) are not affected, except when SSL_clear(3) is being called.
20
21 SSL_set_ssl_method() sets a new TLS/SSL method for a particular ssl
22 object. It may be reset, when SSL_clear() is called.
23
24 SSL_get_ssl_method() returns a function pointer to the TLS/SSL method
25 set in ssl.
26
28 The available method choices are described in SSL_CTX_new(3).
29
30 When SSL_clear(3) is called and no session is connected to an SSL
31 object, the method of the SSL object is reset to the method currently
32 set in the corresponding SSL_CTX object.
33
35 The following return values can occur for SSL_CTX_set_ssl_version() and
36 SSL_set_ssl_method():
37
38 0 The new choice failed, check the error stack to find out the rea‐
39 son.
40
41 1 The operation succeeded.
42
44 SSL_CTX_new(3), SSL_new(3), SSL_clear(3), ssl(3), SSL_set_con‐
45 nect_state(3)
46
47
48
490.9.8b 2001-03-08 SSL_CTX_set_ssl_version(3)