summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-19 21:53:53 +0000
committerschwarze <schwarze@openbsd.org>2018-12-19 21:53:53 +0000
commitde353310588d6cc78a9567585d9e984d52f802c8 (patch)
tree6f89b02e9c847fd76675fdcc77d41eaf87636c0b
parentTest the code path where soreceive(9) sleeps and a control mbuf is (diff)
downloadwireguard-openbsd-de353310588d6cc78a9567585d9e984d52f802c8.tar.xz
wireguard-openbsd-de353310588d6cc78a9567585d9e984d52f802c8.zip
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.
-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.