summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-12-19 21:53:54 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-12-19 21:53:54 +0000
commit9f78990d7f240fd1aca4e8ebed087da9bb1acef1 (patch)
treea28a199ba19f2b3eca3f11b9f7e08c36174bc1be /lib
parentbc5cb34fecd549c05c70b906b3b39e119f96bb49 (diff)
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 <rsalz at openssl dot org>, but using a more explicit wording, and fixing *both* places rather than only half of them.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/man/BN_bn2bin.313
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libcrypto/man/BN_bn2bin.3 b/lib/libcrypto/man/BN_bn2bin.3
index d9cf3915f69..ee05b052f4c 100644
--- a/lib/libcrypto/man/BN_bn2bin.3
+++ b/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 <ulf@openssl.org>.
.\" 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.