diff options
Diffstat (limited to 'src/lib/libssl/src/doc/ssl/SSL_accept.pod')
-rw-r--r-- | src/lib/libssl/src/doc/ssl/SSL_accept.pod | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libssl/src/doc/ssl/SSL_accept.pod b/src/lib/libssl/src/doc/ssl/SSL_accept.pod index 0c79ac515e..86f980de41 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_accept.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_accept.pod | |||
@@ -37,6 +37,11 @@ nothing is to be done, but select() can be used to check for the required | |||
37 | condition. When using a buffering BIO, like a BIO pair, data must be written | 37 | condition. When using a buffering BIO, like a BIO pair, data must be written |
38 | into or retrieved out of the BIO before being able to continue. | 38 | into or retrieved out of the BIO before being able to continue. |
39 | 39 | ||
40 | When using a generic method (see L<SSL_CTX_new(3)|SSL_CTX_new(3)>), it | ||
41 | is necessary to call SSL_set_accept_state() | ||
42 | before calling SSL_accept() to explicitly switch the B<ssl> to server | ||
43 | mode. | ||
44 | |||
40 | =head1 RETURN VALUES | 45 | =head1 RETURN VALUES |
41 | 46 | ||
42 | The following return values can occur: | 47 | The following return values can occur: |
@@ -54,7 +59,7 @@ The TLS/SSL handshake was not successful but was shut down controlled and | |||
54 | by the specifications of the TLS/SSL protocol. Call SSL_get_error() with the | 59 | by the specifications of the TLS/SSL protocol. Call SSL_get_error() with the |
55 | return value B<ret> to find out the reason. | 60 | return value B<ret> to find out the reason. |
56 | 61 | ||
57 | =item -1 | 62 | =item E<lt>0 |
58 | 63 | ||
59 | The TLS/SSL handshake was not successful because a fatal error occurred either | 64 | The TLS/SSL handshake was not successful because a fatal error occurred either |
60 | at the protocol level or a connection failure occurred. The shutdown was | 65 | at the protocol level or a connection failure occurred. The shutdown was |
@@ -67,6 +72,8 @@ to find out the reason. | |||
67 | =head1 SEE ALSO | 72 | =head1 SEE ALSO |
68 | 73 | ||
69 | L<SSL_get_error(3)|SSL_get_error(3)>, L<SSL_connect(3)|SSL_connect(3)>, | 74 | L<SSL_get_error(3)|SSL_get_error(3)>, L<SSL_connect(3)|SSL_connect(3)>, |
70 | L<SSL_shutdown(3)|SSL_shutdown(3)>, L<ssl(3)|ssl(3)>, L<bio(3)|bio(3)> | 75 | L<SSL_shutdown(3)|SSL_shutdown(3)>, L<ssl(3)|ssl(3)>, L<bio(3)|bio(3)>, |
76 | L<SSL_set_connect_state(3)|SSL_set_connect_state(3)>, | ||
77 | L<SSL_CTX_new(3)|SSL_CTX_new(3)> | ||
71 | 78 | ||
72 | =cut | 79 | =cut |