1SSL_set_connect_state(3)            OpenSSL           SSL_set_connect_state(3)
2
3
4

NAME

6       SSL_set_connect_state, SSL_get_accept_state - prepare SSL object to
7       work in client or server mode
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        void SSL_set_connect_state(SSL *ssl);
13
14        void SSL_set_accept_state(SSL *ssl);
15

DESCRIPTION

17       SSL_set_connect_state() sets ssl to work in client mode.
18
19       SSL_set_accept_state() sets ssl to work in server mode.
20

NOTES

22       When the SSL_CTX object was created with SSL_CTX_new(3), it was either
23       assigned a dedicated client method, a dedicated server method, or a
24       generic method, that can be used for both client and server
25       connections. (The method might have been changed with
26       SSL_CTX_set_ssl_version(3) or SSL_set_ssl_method(3).)
27
28       When beginning a new handshake, the SSL engine must know whether it
29       must call the connect (client) or accept (server) routines. Even though
30       it may be clear from the method chosen, whether client or server mode
31       was requested, the handshake routines must be explicitly set.
32
33       When using the SSL_connect(3) or SSL_accept(3) routines, the correct
34       handshake routines are automatically set. When performing a transparent
35       negotiation using SSL_write(3) or SSL_read(3), the handshake routines
36       must be explicitly set in advance using either SSL_set_connect_state()
37       or SSL_set_accept_state().
38

RETURN VALUES

40       SSL_set_connect_state() and SSL_set_accept_state() do not return
41       diagnostic information.
42

SEE ALSO

44       ssl(3), SSL_new(3), SSL_CTX_new(3), SSL_connect(3), SSL_accept(3),
45       SSL_write(3), SSL_read(3), SSL_do_handshake(3),
46       SSL_CTX_set_ssl_version(3)
47
48
49
501.0.2o                            2019-09-10          SSL_set_connect_state(3)
Impressum