diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/BIO_s_connect.3 | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/src/lib/libcrypto/man/BIO_s_connect.3 b/src/lib/libcrypto/man/BIO_s_connect.3 index 580687c808..bce68a26b9 100644 --- a/src/lib/libcrypto/man/BIO_s_connect.3 +++ b/src/lib/libcrypto/man/BIO_s_connect.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: BIO_s_connect.3,v 1.18 2023/04/29 13:06:10 schwarze Exp $ | 1 | .\" $OpenBSD: BIO_s_connect.3,v 1.19 2023/04/30 13:53:54 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 0e474b8b Nov 1 15:45:49 2015 +0100 | 2 | .\" full merge up to: OpenSSL 0e474b8b Nov 1 15:45:49 2015 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file is a derived work. | 4 | .\" This file is a derived work. |
@@ -65,7 +65,7 @@ | |||
65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
67 | .\" | 67 | .\" |
68 | .Dd $Mdocdate: April 29 2023 $ | 68 | .Dd $Mdocdate: April 30 2023 $ |
69 | .Dt BIO_S_CONNECT 3 | 69 | .Dt BIO_S_CONNECT 3 |
70 | .Os | 70 | .Os |
71 | .Sh NAME | 71 | .Sh NAME |
@@ -212,6 +212,40 @@ Usually, \-1 is used to indicate failure and return values less than | |||
212 | or equal to zero abort the operation in question, whereas positive | 212 | or equal to zero abort the operation in question, whereas positive |
213 | values indicate success and allow the operation to proceed. | 213 | values indicate success and allow the operation to proceed. |
214 | .Pp | 214 | .Pp |
215 | The | ||
216 | .Fa state | ||
217 | constants passed to the callback are named according to | ||
218 | which operation needs to be performed next. | ||
219 | They are listed here in the order the states are passed through: | ||
220 | .Pp | ||
221 | .Bl -tag -width BIO_CONN_S_BLOCKED_CONNECT -offset 3n -compact | ||
222 | .It Dv BIO_CONN_S_BEFORE | ||
223 | The BIO is idle and no connection has been initiated yet. | ||
224 | .It Dv BIO_CONN_S_GET_IP | ||
225 | The hostname to connect to needs to be converted to an IP address. | ||
226 | .It Dv BIO_CONN_S_GET_PORT | ||
227 | The service name to connect to needs to be converted to a TCP port number. | ||
228 | .It Dv BIO_CONN_S_CREATE_SOCKET | ||
229 | The TCP socket needs to be created with the | ||
230 | .Xr socket 2 | ||
231 | system call. | ||
232 | .It Dv BIO_CONN_S_NBIO | ||
233 | Socket options may need to be set using | ||
234 | .Xr fcntl 2 | ||
235 | and | ||
236 | .Xr setsockopt 2 . | ||
237 | .It Dv BIO_CONN_S_CONNECT | ||
238 | The connection needs to be initiated with the | ||
239 | .Xr connect 2 | ||
240 | system call. | ||
241 | .It Dv BIO_CONN_S_BLOCKED_CONNECT | ||
242 | The | ||
243 | .Xr connect 2 | ||
244 | system call would have blocked and needs to be tried again. | ||
245 | .It Dv BIO_CONN_S_OK | ||
246 | The connection has been established and can now be used to transfer data. | ||
247 | .El | ||
248 | .Pp | ||
215 | .Fn BIO_set_conn_hostname | 249 | .Fn BIO_set_conn_hostname |
216 | uses the string | 250 | uses the string |
217 | .Fa name | 251 | .Fa name |