From 681acb311bb7c68c9310d2e96bf2cf0e35443a22 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Fri, 29 Sep 2017 13:10:34 +0200 Subject: [PATCH] doc: note that the BN_new() initialises the BIGNUM BN_new() and BN_secure_new() not only allocate memory, but also initialise it to deterministic value - 0. Document that behaviour to make it explicit Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4438) --- doc/man3/BN_new.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/man3/BN_new.pod b/doc/man3/BN_new.pod index 36bd00da28..08aae5e919 100644 --- a/doc/man3/BN_new.pod +++ b/doc/man3/BN_new.pod @@ -36,7 +36,8 @@ If B is NULL, nothing is done. =head1 RETURN VALUES BN_new() and BN_secure_new() -return a pointer to the B. If the allocation fails, +return a pointer to the B initialised to the value 0. +If the allocation fails, they return B and set an error code that can be obtained by L. -- 2.25.1