1SSL_CTX_set_ssl_version(3)          OpenSSL         SSL_CTX_set_ssl_version(3)
2
3
4

NAME

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

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *method);
13        int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
14        const SSL_METHOD *SSL_get_ssl_method(SSL *ssl);
15

DESCRIPTION

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

NOTES

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

RETURN VALUES

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
39           reason.
40
41       1   The operation succeeded.
42

SEE ALSO

44       SSL_CTX_new(3), SSL_new(3), SSL_clear(3), ssl(3),
45       SSL_set_connect_state(3)
46
47
48
491.0.2o                            2019-09-10        SSL_CTX_set_ssl_version(3)
Impressum