From d83bdb1c4d21bc8e11ad3c405784fbc6f545de28 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Wed, 19 Dec 2018 21:53:53 +0000 Subject: Correctly describe the return values of BN_hex2bn(3) and BN_dec2bn(3). Inspired by OpenSSL commit a130950d Aug 23 12:06:41 2017 -0400 by Rich Salz , but using a more explicit wording, and fixing *both* places rather than only half of them. --- src/lib/libcrypto/man/BN_bn2bin.3 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/man/BN_bn2bin.3 b/src/lib/libcrypto/man/BN_bn2bin.3 index d9cf3915f6..ee05b052f4 100644 --- a/src/lib/libcrypto/man/BN_bn2bin.3 +++ b/src/lib/libcrypto/man/BN_bn2bin.3 @@ -1,5 +1,6 @@ -.\" $OpenBSD: BN_bn2bin.3,v 1.11 2018/03/27 17:35:50 schwarze Exp $ -.\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 +.\" $OpenBSD: BN_bn2bin.3,v 1.12 2018/12/19 21:53:53 schwarze Exp $ +.\" full merge up to: OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 +.\" selective merge up to: OpenSSL 1212818e Sep 11 13:22:14 2018 +0100 .\" .\" This file was written by Ulf Moeller . .\" Copyright (c) 2000, 2002, 2016 The OpenSSL Project. All rights reserved. @@ -48,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: March 27 2018 $ +.Dd $Mdocdate: December 19 2018 $ .Dt BN_BN2BIN 3 .Os .Sh NAME @@ -181,7 +182,8 @@ If .Fa a is .Dv NULL , -it only computes the number's length in hexadecimal digits. +it only computes the number's length in hexadecimal digits, +also counting the leading minus sign if there is one. A "negative zero" is converted to zero. .Fn BN_dec2bn is the same using the decimal system. @@ -268,7 +270,8 @@ on error. .Fn BN_hex2bn and .Fn BN_dec2bn -return the number's length in hexadecimal or decimal digits +return the number's length in hexadecimal or decimal digits, +also counting the leading minus sign if there is one, or 0 on error, in which case no new .Vt BIGNUM is created. -- cgit v1.2.3-55-g6feb