From ec38492c8fc4ee0c15c73847324a6b50d1581557 Mon Sep 17 00:00:00 2001 From: schwarze Date: Sun, 30 Apr 2023 13:57:29 +0000 Subject: [PATCH] Slightly improve the documentation of the "oper" parameter by explicitly listing the valid arguments, i.e. the BIO_CB_* constants. --- lib/libcrypto/man/BIO_set_callback.3 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/libcrypto/man/BIO_set_callback.3 b/lib/libcrypto/man/BIO_set_callback.3 index 7a653c7814e..56a0102be6c 100644 --- a/lib/libcrypto/man/BIO_set_callback.3 +++ b/lib/libcrypto/man/BIO_set_callback.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BIO_set_callback.3,v 1.11 2023/04/07 14:47:37 schwarze Exp $ +.\" $OpenBSD: BIO_set_callback.3,v 1.12 2023/04/30 13:57:29 schwarze Exp $ .\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 .\" .\" This file is a derived work. @@ -65,7 +65,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: April 7 2023 $ +.Dd $Mdocdate: April 30 2023 $ .Dt BIO_SET_CALLBACK 3 .Os .Sh NAME @@ -190,7 +190,14 @@ The arguments of the callback functions are as follows: .It Fa b The BIO the callback is attached to. .It Fa oper -The operation being performed. +The operation being performed, which is one of +.Dv BIO_CB_CTRL , +.Dv BIO_CB_FREE , +.Dv BIO_CB_GETS , +.Dv BIO_CB_PUTS , +.Dv BIO_CB_READ , +or +.Dv BIO_CB_WRITE . For some operations, the callback is called twice, once before and once after the actual operation. The latter case has -- 2.20.1