1SSL_state_string(3) OpenSSL SSL_state_string(3)
2
3
4
6 SSL_state_string, SSL_state_string_long - get textual description of
7 state of an SSL object
8
10 #include <openssl/ssl.h>
11
12 const char *SSL_state_string(const SSL *ssl);
13 const char *SSL_state_string_long(const SSL *ssl);
14
16 SSL_state_string() returns a 6 letter string indicating the current
17 state of the SSL object ssl.
18
19 SSL_state_string_long() returns a string indicating the current state
20 of the SSL object ssl.
21
23 During its use, an SSL objects passes several states. The state is
24 internally maintained. Querying the state information is not very
25 informative before or when a connection has been established. It
26 however can be of significant interest during the handshake.
27
28 When using non-blocking sockets, the function call performing the
29 handshake may return with SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE
30 condition, so that SSL_state_string[_long]() may be called.
31
32 For both blocking or non-blocking sockets, the details state
33 information can be used within the info_callback function set with the
34 SSL_set_info_callback() call.
35
37 Detailed description of possible states to be included later.
38
40 ssl(3), SSL_CTX_set_info_callback(3)
41
42
43
441.0.2o 2019-09-10 SSL_state_string(3)