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(const 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(7),
45       SSL_set_connect_state(3)
46
48       Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
49
50       Licensed under the OpenSSL license (the "License").  You may not use
51       this file except in compliance with the License.  You can obtain a copy
52       in the file LICENSE in the source distribution or at
53       <https://www.openssl.org/source/license.html>.
54
55
56
571.1.1q                            2022-07-07        SSL_CTX_SET_SSL_VERSION(3)
Impressum