From d641ad51326e96b41f0490e2e3398d08e8f87557 Mon Sep 17 00:00:00 2001 From: PW Hu Date: Thu, 7 Oct 2021 11:40:49 +0800 Subject: Fix documentation errors, mainly caused by return values of BIO_ctrl Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16767) (cherry picked from commit 5001287c0dcd8ca4ffc564b360f86df79bba40c1) --- doc/man3/BIO_s_connect.pod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/man3/BIO_s_connect.pod') diff --git a/doc/man3/BIO_s_connect.pod b/doc/man3/BIO_s_connect.pod index f31da27fe7..76ed7337ea 100644 --- a/doc/man3/BIO_s_connect.pod +++ b/doc/man3/BIO_s_connect.pod @@ -141,9 +141,9 @@ BIO_set_nbio(), and BIO_do_connect() are macros. BIO_s_connect() returns the connect BIO method. BIO_set_conn_address(), BIO_set_conn_port(), and BIO_set_conn_ip_family() -always return 1. +return 1 or <=0 if an error occurs. -BIO_set_conn_hostname() returns 1 on success and 0 on failure. +BIO_set_conn_hostname() returns 1 on success and <=0 on failure. BIO_get_conn_address() returns the address information or NULL if none was set. @@ -156,10 +156,10 @@ BIO_get_conn_ip_family() returns the address family or -1 if none was set. BIO_get_conn_port() returns a string representing the connected port or NULL if not set. -BIO_set_nbio() always returns 1. +BIO_set_nbio() returns 1 or <=0 if an error occurs. BIO_do_connect() returns 1 if the connection was successfully -established and 0 or -1 if the connection failed. +established and <=0 if the connection failed. =head1 EXAMPLES -- cgit v1.2.3