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 nonblocking 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 nonblocking sockets, the details state information
33 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(7), SSL_CTX_set_info_callback(3)
41
43 Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved.
44
45 Licensed under the OpenSSL license (the "License"). You may not use
46 this file except in compliance with the License. You can obtain a copy
47 in the file LICENSE in the source distribution or at
48 <https://www.openssl.org/source/license.html>.
49
50
51
521.1.1q 2022-07-07 SSL_STATE_STRING(3)