summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortedu <>2014-10-08 14:47:15 +0000
committertedu <>2014-10-08 14:47:15 +0000
commitf2c6f852a17ae2e11013ea1ecbe89657ba3e0ecb (patch)
tree383a8b8fbdcd90425214aa963b45c9741328ed1f /src/lib
parentee31efc9fc6dc843464d5d9b7703070b7c2768ec (diff)
downloadopenbsd-f2c6f852a17ae2e11013ea1ecbe89657ba3e0ecb.tar.gz
openbsd-f2c6f852a17ae2e11013ea1ecbe89657ba3e0ecb.tar.bz2
openbsd-f2c6f852a17ae2e11013ea1ecbe89657ba3e0ecb.zip
add a few more functions.
(I also forgot to credit doug for much of the initial markup in the previous commit.)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libressl/ressl.322
1 files changed, 17 insertions, 5 deletions
diff --git a/src/lib/libressl/ressl.3 b/src/lib/libressl/ressl.3
index 634dcdbc33..7f141d12fa 100644
--- a/src/lib/libressl/ressl.3
+++ b/src/lib/libressl/ressl.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ressl.3,v 1.1 2014/10/08 14:40:01 tedu Exp $ 1.\" $OpenBSD: ressl.3,v 1.2 2014/10/08 14:47:15 tedu Exp $
2.\" 2.\"
3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4.\" All rights reserved. 4.\" All rights reserved.
@@ -271,24 +271,36 @@ The following functions create, prepare, and free a connection context.
271.It 271.It
272.Fn ressl_client 272.Fn ressl_client
273creates a new ressl context for client connections. 273creates a new ressl context for client connections.
274.Pp
275.It 274.It
276.Fn ressl_server 275.Fn ressl_server
277creates a new ressl context for server connections. 276creates a new ressl context for server connections.
278.Pp
279.It 277.It
280.Fn ressl_configure 278.Fn ressl_configure
281readies a ressl context for use by applying the configuration 279readies a ressl context for use by applying the configuration
282options. 280options.
283.Pp 281.It
282.Fn ressl_close
283closes a connection after use.
284.It 284.It
285.Fn ressl_free 285.Fn ressl_free
286frees a ressl context after use. 286frees a ressl context after use.
287.El 287.El
288.Pp 288.Pp
289The following functions perform input and output operations. 289The following functions initiate a connection and perform input and output
290operations.
290.Bl -bullet -offset four 291.Bl -bullet -offset four
291.It 292.It
293.Fn ressl_connect
294connects a client context to the server named by
295.Fa host.
296The
297.Fa port
298may be numeric or a service name.
299If it is NULL then a host of the format "hostname:port" is permitted.
300.It
301.Fn ressl_connect_socket
302connects a client context to an already established socket connection.
303.It
292.Fn ressl_read 304.Fn ressl_read
293reads 305reads
294.Fa buflen 306.Fa buflen