1SSL_RSTATE_STRING(3) OpenSSL SSL_RSTATE_STRING(3)
2
3
4
6 SSL_rstate_string, SSL_rstate_string_long - get textual description of
7 state of an SSL object during read operation
8
10 #include <openssl/ssl.h>
11
12 const char *SSL_rstate_string(SSL *ssl);
13 const char *SSL_rstate_string_long(SSL *ssl);
14
16 SSL_rstate_string() returns a 2 letter string indicating the current
17 read state of the SSL object ssl.
18
19 SSL_rstate_string_long() returns a string indicating the current read
20 state of the SSL object ssl.
21
23 When performing a read operation, the SSL/TLS engine must parse the
24 record, consisting of header and body. When working in a blocking
25 environment, SSL_rstate_string[_long]() should always return "RD"/"read
26 done".
27
28 This function should only seldom be needed in applications.
29
31 SSL_rstate_string() and SSL_rstate_string_long() can return the
32 following values:
33
34 "RH"/"read header"
35 The header of the record is being evaluated.
36
37 "RB"/"read body"
38 The body of the record is being evaluated.
39
40 "RD"/"read done"
41 The record has been completely processed.
42
43 "unknown"/"unknown"
44 The read state is unknown. This should never happen.
45
47 ssl(7)
48
50 Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
51
52 Licensed under the OpenSSL license (the "License"). You may not use
53 this file except in compliance with the License. You can obtain a copy
54 in the file LICENSE in the source distribution or at
55 <https://www.openssl.org/source/license.html>.
56
57
58
591.1.1i 2021-01-26 SSL_RSTATE_STRING(3)