diff options
Diffstat (limited to 'src/lib/libssl/doc/SSL_state_string.3')
| -rw-r--r-- | src/lib/libssl/doc/SSL_state_string.3 | 54 |
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 | ||
| 16 | returns a 6 letter string indicating the current state of the | ||
| 17 | .Vt SSL | ||
| 18 | object | ||
| 19 | .Fa ssl . | ||
| 20 | .Pp | ||
| 21 | .Fn SSL_state_string_long | ||
| 22 | returns a string indicating the current state of the | ||
| 23 | .Vt SSL | ||
| 24 | object | ||
| 25 | .Fa ssl . | ||
| 26 | .Sh NOTES | ||
| 27 | During its use, an | ||
| 28 | .Vt SSL | ||
| 29 | object passes several states. | ||
| 30 | The state is internally maintained. | ||
| 31 | Querying the state information is not very informative before or when a | ||
| 32 | connection has been established. | ||
| 33 | It however can be of significant interest during the handshake. | ||
| 34 | .Pp | ||
| 35 | When using non-blocking sockets, | ||
| 36 | the function call performing the handshake may return with | ||
| 37 | .Dv SSL_ERROR_WANT_READ | ||
| 38 | or | ||
| 39 | .Dv SSL_ERROR_WANT_WRITE | ||
| 40 | condition, so that | ||
| 41 | .Fn SSL_state_string[_long] | ||
| 42 | may be called. | ||
| 43 | .Pp | ||
| 44 | For both blocking or non-blocking sockets, | ||
| 45 | the details state information can be used within the | ||
| 46 | .Fn info_callback | ||
| 47 | function set with the | ||
| 48 | .Xr SSL_set_info_callback 3 | ||
| 49 | call. | ||
| 50 | .Sh RETURN VALUES | ||
| 51 | Detailed description of possible states to be included later. | ||
| 52 | .Sh SEE ALSO | ||
| 53 | .Xr ssl 3 , | ||
| 54 | .Xr SSL_CTX_set_info_callback 3 | ||
