-.\" $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.
.\" 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
.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
.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 *)"
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