Document the fact that setting a BIO create function means the BIO will no longer...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 28 Mar 2022 19:13:39 +0000 (13:13 -0600)
committerTodd Short <todd.short@me.com>
Tue, 5 Apr 2022 15:40:21 +0000 (11:40 -0400)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/17983)

(cherry picked from commit dedb1927751bc9a7ada08cfc4dcc481b8ce1ad81)

doc/man3/BIO_meth_new.pod

index 15c369e7a9844fc05e33a4bd15e3d2f7b7783f4f..51db3af0d48ae90152c5701aa42fcd043e6cfd1b 100644 (file)
@@ -118,7 +118,10 @@ for creating a new instance of the BIO respectively. This function will be
 called in response to the application calling BIO_new() and passing
 in a pointer to the current BIO_METHOD. The BIO_new() function will allocate the
 memory for the new BIO, and a pointer to this newly allocated structure will
-be passed as a parameter to the function.
+be passed as a parameter to the function. If a create function is set,
+BIO_new() will not mark the BIO as initialised on allocation.
+L<BIO_set_init(3)> must then be called either by the create function, or later,
+by a BIO ctrl function, once BIO initialisation is complete.
 
 BIO_meth_get_destroy() and BIO_meth_set_destroy() get and set the function used
 for destroying an instance of a BIO respectively. This function will be