diff options
Diffstat (limited to 'src/lib/libssl/man/SSL_rstate_string.3')
-rw-r--r-- | src/lib/libssl/man/SSL_rstate_string.3 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/libssl/man/SSL_rstate_string.3 b/src/lib/libssl/man/SSL_rstate_string.3 new file mode 100644 index 0000000000..4b29fed86e --- /dev/null +++ b/src/lib/libssl/man/SSL_rstate_string.3 | |||
@@ -0,0 +1,55 @@ | |||
1 | .\" | ||
2 | .\" $OpenBSD: SSL_rstate_string.3,v 1.1 2016/11/05 15:32:20 schwarze Exp $ | ||
3 | .\" | ||
4 | .Dd $Mdocdate: November 5 2016 $ | ||
5 | .Dt SSL_RSTATE_STRING 3 | ||
6 | .Os | ||
7 | .Sh NAME | ||
8 | .Nm SSL_rstate_string , | ||
9 | .Nm SSL_rstate_string_long | ||
10 | .Nd get textual description of state of an SSL object during read operation | ||
11 | .Sh SYNOPSIS | ||
12 | .In openssl/ssl.h | ||
13 | .Ft const char * | ||
14 | .Fn SSL_rstate_string "SSL *ssl" | ||
15 | .Ft const char * | ||
16 | .Fn SSL_rstate_string_long "SSL *ssl" | ||
17 | .Sh DESCRIPTION | ||
18 | .Fn SSL_rstate_string | ||
19 | returns a 2-letter string indicating the current read state of the | ||
20 | .Vt SSL | ||
21 | object | ||
22 | .Fa ssl . | ||
23 | .Pp | ||
24 | .Fn SSL_rstate_string_long | ||
25 | returns a string indicating the current read state of the | ||
26 | .Vt SSL | ||
27 | object | ||
28 | .Fa ssl . | ||
29 | .Sh NOTES | ||
30 | When performing a read operation, the SSL/TLS engine must parse the record, | ||
31 | consisting of header and body. | ||
32 | When working in a blocking environment, | ||
33 | .Fn SSL_rstate_string[_long] | ||
34 | should always return | ||
35 | .Qo RD Qc Ns / Ns Qo read done Qc . | ||
36 | .Pp | ||
37 | This function should only seldom be needed in applications. | ||
38 | .Sh RETURN VALUES | ||
39 | .Fn SSL_rstate_string | ||
40 | and | ||
41 | .Fn SSL_rstate_string_long | ||
42 | can return the following values: | ||
43 | .Bl -tag -width Ds | ||
44 | .It Qo RH Qc Ns / Ns Qo read header Qc | ||
45 | The header of the record is being evaluated. | ||
46 | .It Qo RB Qc Ns / Ns Qo read body Qc | ||
47 | The body of the record is being evaluated. | ||
48 | .It Qo RD Qc Ns / Ns Qo read done Qc | ||
49 | The record has been completely processed. | ||
50 | .It Qo unknown Qc Ns / Ns Qo unknown Qc | ||
51 | The read state is unknown. | ||
52 | This should never happen. | ||
53 | .El | ||
54 | .Sh SEE ALSO | ||
55 | .Xr ssl 3 | ||