summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-12-19 21:53:53 +0000
committerschwarze <>2018-12-19 21:53:53 +0000
commit1635f75ddd8849b3cf2854c2040171d68e696d5c (patch)
treee5732502206a6cf40c2c669c5402e3946d80885f /src
parent9a469cbd7a8234e6b3983adf70ee803ffe8e788a (diff)
downloadopenbsd-1635f75ddd8849b3cf2854c2040171d68e696d5c.tar.gz
openbsd-1635f75ddd8849b3cf2854c2040171d68e696d5c.tar.bz2
openbsd-1635f75ddd8849b3cf2854c2040171d68e696d5c.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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BN_bn2bin.313
1 files changed, 8 insertions, 5 deletions
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 @@
1.\" $OpenBSD: BN_bn2bin.3,v 1.11 2018/03/27 17:35:50 schwarze Exp $ 1.\" $OpenBSD: BN_bn2bin.3,v 1.12 2018/12/19 21:53:53 schwarze Exp $
2.\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 2.\" full merge up to: OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400
3.\" selective merge up to: OpenSSL 1212818e Sep 11 13:22:14 2018 +0100
3.\" 4.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org>. 5.\" This file was written by Ulf Moeller <ulf@openssl.org>.
5.\" Copyright (c) 2000, 2002, 2016 The OpenSSL Project. All rights reserved. 6.\" Copyright (c) 2000, 2002, 2016 The OpenSSL Project. All rights reserved.
@@ -48,7 +49,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 51.\"
51.Dd $Mdocdate: March 27 2018 $ 52.Dd $Mdocdate: December 19 2018 $
52.Dt BN_BN2BIN 3 53.Dt BN_BN2BIN 3
53.Os 54.Os
54.Sh NAME 55.Sh NAME
@@ -181,7 +182,8 @@ If
181.Fa a 182.Fa a
182is 183is
183.Dv NULL , 184.Dv NULL ,
184it only computes the number's length in hexadecimal digits. 185it only computes the number's length in hexadecimal digits,
186also counting the leading minus sign if there is one.
185A "negative zero" is converted to zero. 187A "negative zero" is converted to zero.
186.Fn BN_dec2bn 188.Fn BN_dec2bn
187is the same using the decimal system. 189is the same using the decimal system.
@@ -268,7 +270,8 @@ on error.
268.Fn BN_hex2bn 270.Fn BN_hex2bn
269and 271and
270.Fn BN_dec2bn 272.Fn BN_dec2bn
271return the number's length in hexadecimal or decimal digits 273return the number's length in hexadecimal or decimal digits,
274also counting the leading minus sign if there is one,
272or 0 on error, in which case no new 275or 0 on error, in which case no new
273.Vt BIGNUM 276.Vt BIGNUM
274is created. 277is created.