From: schwarze Date: Mon, 19 Feb 2018 14:22:15 +0000 (+0000) Subject: In bio.h rev. 1.33 2018/02/18 12:59:06, tb@ provided BIO_meth_set_gets(3). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=abb5ce1fdf7dfe688dc3889b303bdaeb10b808c6;p=openbsd In bio.h rev. 1.33 2018/02/18 12:59:06, tb@ provided BIO_meth_set_gets(3). Merge the documentation from OpenSSL. --- 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