diff options
author | schwarze <> | 2018-12-19 21:53:53 +0000 |
---|---|---|
committer | schwarze <> | 2018-12-19 21:53:53 +0000 |
commit | d83bdb1c4d21bc8e11ad3c405784fbc6f545de28 (patch) | |
tree | e5732502206a6cf40c2c669c5402e3946d80885f /src | |
parent | fc7bdc07350b9e50697b740e90d0958b1f576a8b (diff) | |
download | openbsd-d83bdb1c4d21bc8e11ad3c405784fbc6f545de28.tar.gz openbsd-d83bdb1c4d21bc8e11ad3c405784fbc6f545de28.tar.bz2 openbsd-d83bdb1c4d21bc8e11ad3c405784fbc6f545de28.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.3 | 13 |
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 |
182 | is | 183 | is |
183 | .Dv NULL , | 184 | .Dv NULL , |
184 | it only computes the number's length in hexadecimal digits. | 185 | it only computes the number's length in hexadecimal digits, |
186 | also counting the leading minus sign if there is one. | ||
185 | A "negative zero" is converted to zero. | 187 | A "negative zero" is converted to zero. |
186 | .Fn BN_dec2bn | 188 | .Fn BN_dec2bn |
187 | is the same using the decimal system. | 189 | is the same using the decimal system. |
@@ -268,7 +270,8 @@ on error. | |||
268 | .Fn BN_hex2bn | 270 | .Fn BN_hex2bn |
269 | and | 271 | and |
270 | .Fn BN_dec2bn | 272 | .Fn BN_dec2bn |
271 | return the number's length in hexadecimal or decimal digits | 273 | return the number's length in hexadecimal or decimal digits, |
274 | also counting the leading minus sign if there is one, | ||
272 | or 0 on error, in which case no new | 275 | or 0 on error, in which case no new |
273 | .Vt BIGNUM | 276 | .Vt BIGNUM |
274 | is created. | 277 | is created. |