BIO: Emphasise API contract for BIO_sendmmsg/BIO_recvmmsg
authorHugo Landau <hlandau@openssl.org>
Wed, 30 Aug 2023 13:00:14 +0000 (14:00 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 1 Sep 2023 13:02:50 +0000 (14:02 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21905)

doc/man3/BIO_sendmmsg.pod

index 9742eda50b50fb6bb06ff1b955416e525053fb7b..04075dd591940d82b459dd5df3b9b20f142eb326 100644 (file)
@@ -197,6 +197,10 @@ transient error, many of which are system specific.
 
 =back
 
+Third parties implementing custom BIOs supporting the BIO_sendmmsg() or
+BIO_recvmmsg() methods should note that it is a required part of the API
+contract that an error is always raised when either of these functions return 0.
+
 BIO_dgram_set_local_addr_enable() returns 1 if local address support was
 successfully enabled or disabled and 0 otherwise.