-.\" $OpenBSD: BIO_get_data.3,v 1.3 2018/03/23 23:18:17 schwarze Exp $
-.\" selective merge up to: OpenSSL e90fc053 Jul 15 09:39:45 2017 -0400
+.\" $OpenBSD: BIO_get_data.3,v 1.4 2022/11/25 17:44:01 schwarze Exp $
+.\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
.\"
.\" This file is a derived work.
.\" The changes are covered by the following Copyright and license:
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 23 2018 $
+.Dd $Mdocdate: November 25 2022 $
.Dt BIO_GET_DATA 3
.Os
.Sh NAME
.Nm BIO_set_data ,
.Nm BIO_get_data ,
.Nm BIO_set_init ,
+.Nm BIO_get_init ,
.Nm BIO_set_shutdown ,
.Nm BIO_get_shutdown
.Nd manage BIO state information
.Fa "BIO *a"
.Fa "int init"
.Fc
+.Ft int
+.Fo BIO_get_init
+.Fa "BIO *a"
+.Fc
.Ft void
.Fo BIO_set_shutdown
.Fa "BIO *a"
.Dv NULL
if none is set.
.Pp
+.Fn BIO_get_init
+returns the value of the init flag of
+.Fa a .
+.Pp
.Fn BIO_get_shutdown
returns the value previously set with
.Fn BIO_set_shutdown
.Xr BIO_new 3 ,
.Xr BIO_set_close 3
.Sh HISTORY
-These functions first appeared in OpenSSL 1.1.0
-and have been available since
+.Fn BIO_set_data ,
+.Fn BIO_get_data ,
+.Fn BIO_set_init ,
+.Fn BIO_set_shutdown ,
+and
+.Fn BIO_get_shutdown
+first appeared in OpenSSL 1.1.0 and have been available since
.Ox 6.3 .
+.Pp
+.Fn BIO_get_init
+first appeared in OpenSSL 1.1.0 and has been available since
+.Ox 7.1 .