summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_state_string.3
diff options
context:
space:
mode:
authorbentley <>2014-10-12 09:33:04 +0000
committerbentley <>2014-10-12 09:33:04 +0000
commit82b7f378b6907ab315a6e50322d2a0a8794a0aa9 (patch)
treea5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_state_string.3
parent0a63f0cf49369e1926567ab62e04e3355cedf0cd (diff)
downloadopenbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.gz
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.bz2
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.zip
Convert libssl manpages from pod to mdoc(7).
libcrypto has not been started yet. ok schwarze@ miod@
Diffstat (limited to 'src/lib/libssl/doc/SSL_state_string.3')
-rw-r--r--src/lib/libssl/doc/SSL_state_string.354
1 files changed, 54 insertions, 0 deletions
diff --git a/src/lib/libssl/doc/SSL_state_string.3 b/src/lib/libssl/doc/SSL_state_string.3
new file mode 100644
index 0000000000..828b8f351a
--- /dev/null
+++ b/src/lib/libssl/doc/SSL_state_string.3
@@ -0,0 +1,54 @@
1.Dd $Mdocdate: October 12 2014 $
2.Dt SSL_STATE_STRING 3
3.Os
4.Sh NAME
5.Nm SSL_state_string ,
6.Nm SSL_state_string_long
7.Nd get textual description of state of an SSL object
8.Sh SYNOPSIS
9.In openssl/ssl.h
10.Ft const char *
11.Fn SSL_state_string "const SSL *ssl"
12.Ft const char *
13.Fn SSL_state_string_long "const SSL *ssl"
14.Sh DESCRIPTION
15.Fn SSL_state_string
16returns a 6 letter string indicating the current state of the
17.Vt SSL
18object
19.Fa ssl .
20.Pp
21.Fn SSL_state_string_long
22returns a string indicating the current state of the
23.Vt SSL
24object
25.Fa ssl .
26.Sh NOTES
27During its use, an
28.Vt SSL
29object passes several states.
30The state is internally maintained.
31Querying the state information is not very informative before or when a
32connection has been established.
33It however can be of significant interest during the handshake.
34.Pp
35When using non-blocking sockets,
36the function call performing the handshake may return with
37.Dv SSL_ERROR_WANT_READ
38or
39.Dv SSL_ERROR_WANT_WRITE
40condition, so that
41.Fn SSL_state_string[_long]
42may be called.
43.Pp
44For both blocking or non-blocking sockets,
45the details state information can be used within the
46.Fn info_callback
47function set with the
48.Xr SSL_set_info_callback 3
49call.
50.Sh RETURN VALUES
51Detailed description of possible states to be included later.
52.Sh SEE ALSO
53.Xr ssl 3 ,
54.Xr SSL_CTX_set_info_callback 3