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_accept.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/man3/BIO_s_accept.pod') diff --git a/doc/man3/BIO_s_accept.pod b/doc/man3/BIO_s_accept.pod index e6f9291364..c3826a609f 100644 --- a/doc/man3/BIO_s_accept.pod +++ b/doc/man3/BIO_s_accept.pod @@ -169,16 +169,16 @@ BIO_set_bind_mode(), BIO_get_bind_mode() and BIO_do_accept() are macros. BIO_do_accept(), BIO_set_accept_name(), BIO_set_accept_port(), BIO_set_nbio_accept(), BIO_set_accept_bios(), BIO_set_accept_ip_family(), and BIO_set_bind_mode() -return 1 for success and 0 or -1 for failure. +return 1 for success and <=0 for failure. BIO_get_accept_name() returns the accept name or NULL on error. BIO_get_peer_name() returns the peer name or NULL on error. BIO_get_accept_port() returns the accept port as a string or NULL on error. BIO_get_peer_port() returns the peer port as a string or NULL on error. -BIO_get_accept_ip_family() returns the IP family or -1 on error. +BIO_get_accept_ip_family() returns the IP family or <=0 on error. -BIO_get_bind_mode() returns the set of B flags, or -1 on failure. +BIO_get_bind_mode() returns the set of B flags, or <=0 on failure. BIO_new_accept() returns a BIO or NULL on error. -- cgit v1.2.3