summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-02-19 14:22:16 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-02-19 14:22:16 +0000
commit56475600eb36ca9112106f960bbec0e655c8cc8f (patch)
treef50ed696560de5fb45bac31f3c61dd91d6424fb8
parent5bedd346d8ac25a3f11ff266847a7d5b575c893f (diff)
In bio.h rev. 1.33 2018/02/18 12:59:06, tb@ provided BIO_meth_set_gets(3).
Merge the documentation from OpenSSL.
-rw-r--r--lib/libcrypto/man/BIO_meth_new.322
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/libcrypto/man/BIO_meth_new.3 b/lib/libcrypto/man/BIO_meth_new.3
index d50b7ffc767..0036bd1b2ba 100644
--- a/lib/libcrypto/man/BIO_meth_new.3
+++ b/lib/libcrypto/man/BIO_meth_new.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: BIO_meth_new.3,v 1.1 2018/02/17 23:24:38 schwarze Exp $
+.\" $OpenBSD: BIO_meth_new.3,v 1.2 2018/02/19 14:22:15 schwarze Exp $
.\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800
.\"
.\" This file is a derived work.
@@ -65,7 +65,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: February 17 2018 $
+.Dd $Mdocdate: February 19 2018 $
.Dt BIO_METH_NEW 3
.Os
.Sh NAME
@@ -74,6 +74,7 @@
.Nm BIO_meth_set_write ,
.Nm BIO_meth_set_read ,
.Nm BIO_meth_set_puts ,
+.Nm BIO_meth_set_gets ,
.Nm BIO_meth_set_ctrl ,
.Nm BIO_meth_set_create ,
.Nm BIO_meth_set_destroy
@@ -105,6 +106,11 @@
.Fa "int (*puts)(BIO *, const char *)"
.Fc
.Ft int
+.Fo BIO_meth_set_gets
+.Fa "BIO_METHOD *biom"
+.Fa "int (*gets)(BIO *, char *, int)"
+.Fc
+.Ft int
.Fo BIO_meth_set_ctrl
.Fa "BIO_METHOD *biom"
.Fa "long (*ctrl)(BIO *, int, long, void *)"
@@ -203,6 +209,18 @@ The parameters and the return value of
have the same meaning as for
.Xr BIO_puts 3 .
.Pp
+.Fn BIO_meth_set_gets
+sets the function
+.Fa gets
+used for reading a line of data to the
+.Vt BIO .
+This function is called from
+.Xr BIO_gets 3 .
+The parameters and the return value of
+.Fa gets
+have the same meaning as for
+.Xr BIO_gets 3 .
+.Pp
.Fn BIO_meth_set_ctrl
sets the function
.Fa ctrl