From abeb41b42fa3cdca99d3f3fef48ea6ee04023d68 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Fri, 18 Aug 2023 12:06:10 +0100 Subject: Minor updates Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21715) --- doc/man3/BIO_s_connect.pod | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/man3/BIO_s_connect.pod b/doc/man3/BIO_s_connect.pod index 0c1106c523..35d67787ff 100644 --- a/doc/man3/BIO_s_connect.pod +++ b/doc/man3/BIO_s_connect.pod @@ -7,7 +7,7 @@ BIO_set_conn_hostname, BIO_set_conn_port, BIO_set_conn_address, BIO_set_conn_ip_family, BIO_get_conn_hostname, BIO_get_conn_port, BIO_get_conn_address, BIO_get_conn_ip_family, -BIO_set_nbio, BIO_set_sock_type, BIO_get_sock_type, BIO_get_dgram_bio, +BIO_set_nbio, BIO_set_sock_type, BIO_get_sock_type, BIO_get0_dgram_bio, BIO_do_connect - connect BIO =head1 SYNOPSIS @@ -31,7 +31,7 @@ BIO_do_connect - connect BIO int BIO_set_sock_type(BIO *b, int sock_type); int BIO_get_sock_type(BIO *b); - int BIO_get_dgram_bio(BIO *B, BIO **dgram_bio); + int BIO_get0_dgram_bio(BIO *B, BIO **dgram_bio); long BIO_do_connect(BIO *b); @@ -112,8 +112,10 @@ default) and B. If B is configured, the connection created is a UDP datagram socket handled via L. I/O calls such as L and L are forwarded transparently to an internal L instance. The created L -instance can be retrieved using BIO_get_dgram_bio() if desired, which writes -a pointer to the L instance to I<*dgram_bio>. +instance can be retrieved using BIO_get0_dgram_bio() if desired, which writes +a pointer to the L instance to I<*dgram_bio>. The lifetime +of the internal L is managed by BIO_s_connect() and does not +need to be freed by the caller. BIO_get_sock_type() retrieves the value set using BIO_set_sock_type(). @@ -181,7 +183,7 @@ BIO_set_sock_type() returns 1 on success or 0 on failure. BIO_get_sock_type() returns a socket type or 0 if the call is not supported. -BIO_get_dgram_bio() returns 1 on success or 0 on failure. +BIO_get0_dgram_bio() returns 1 on success or 0 on failure. =head1 EXAMPLES -- cgit v1.2.3