From ceb4d7caee429c5d359c43e92565bc3fea95936a Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 30 Nov 2021 18:34:35 +0000 Subject: [PATCH] Add missing const qualifiers in a number of BN_* manuals. ok schwarze --- lib/libcrypto/man/BN_add.3 | 34 +++++++++++------------ lib/libcrypto/man/BN_cmp.3 | 20 ++++++------- lib/libcrypto/man/BN_mod_inverse.3 | 6 ++-- lib/libcrypto/man/BN_mod_mul_montgomery.3 | 12 ++++---- lib/libcrypto/man/BN_mod_mul_reciprocal.3 | 10 +++---- lib/libcrypto/man/BN_rand.3 | 6 ++-- lib/libcrypto/man/BN_set_bit.3 | 10 +++---- lib/libcrypto/man/BN_zero.3 | 6 ++-- 8 files changed, 52 insertions(+), 52 deletions(-) diff --git a/lib/libcrypto/man/BN_add.3 b/lib/libcrypto/man/BN_add.3 index 8a11d7c0804..355d7a7cb32 100644 --- a/lib/libcrypto/man/BN_add.3 +++ b/lib/libcrypto/man/BN_add.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_add.3,v 1.13 2018/04/29 15:58:21 schwarze Exp $ +.\" $OpenBSD: BN_add.3,v 1.14 2021/11/30 18:34:35 tb Exp $ .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" .\" This file was written by Ulf Moeller @@ -49,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: April 29 2018 $ +.Dd $Mdocdate: November 30 2021 $ .Dt BN_ADD 3 .Os .Sh NAME @@ -92,14 +92,14 @@ .Ft int .Fo BN_mul .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_sqr .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "BN_CTX *ctx" .Fc .Ft int @@ -127,45 +127,45 @@ .Ft int .Fo BN_mod_add .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fa "const BIGNUM *m" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_mod_sub .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fa "const BIGNUM *m" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_mod_mul .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fa "const BIGNUM *m" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_mod_sqr .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "const BIGNUM *m" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_exp .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *p" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *p" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_mod_exp .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "const BIGNUM *p" .Fa "const BIGNUM *m" .Fa "BN_CTX *ctx" @@ -173,8 +173,8 @@ .Ft int .Fo BN_gcd .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fa "BN_CTX *ctx" .Fc .Sh DESCRIPTION diff --git a/lib/libcrypto/man/BN_cmp.3 b/lib/libcrypto/man/BN_cmp.3 index 9e2baa24273..8064b7e90d5 100644 --- a/lib/libcrypto/man/BN_cmp.3 +++ b/lib/libcrypto/man/BN_cmp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_cmp.3,v 1.6 2018/03/27 17:35:50 schwarze Exp $ +.\" $OpenBSD: BN_cmp.3,v 1.7 2021/11/30 18:34:35 tb Exp $ .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" .\" This file was written by Ulf Moeller . @@ -48,7 +48,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: November 30 2021 $ .Dt BN_CMP 3 .Os .Sh NAME @@ -63,30 +63,30 @@ .In openssl/bn.h .Ft int .Fo BN_cmp -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fc .Ft int .Fo BN_ucmp -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fc .Ft int .Fo BN_is_zero -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fc .Ft int .Fo BN_is_one -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fc .Ft int .Fo BN_is_word -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "BN_ULONG w" .Fc .Ft int .Fo BN_is_odd -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fc .Sh DESCRIPTION .Fn BN_cmp diff --git a/lib/libcrypto/man/BN_mod_inverse.3 b/lib/libcrypto/man/BN_mod_inverse.3 index aa509b1ab60..788f66fb931 100644 --- a/lib/libcrypto/man/BN_mod_inverse.3 +++ b/lib/libcrypto/man/BN_mod_inverse.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_mod_inverse.3,v 1.10 2018/04/29 15:58:21 schwarze Exp $ +.\" $OpenBSD: BN_mod_inverse.3,v 1.11 2021/11/30 18:34:35 tb Exp $ .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" .\" This file was written by Ulf Moeller . @@ -48,7 +48,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: April 29 2018 $ +.Dd $Mdocdate: November 30 2021 $ .Dt BN_MOD_INVERSE 3 .Os .Sh NAME @@ -59,7 +59,7 @@ .Ft BIGNUM * .Fo BN_mod_inverse .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "const BIGNUM *n" .Fa "BN_CTX *ctx" .Fc diff --git a/lib/libcrypto/man/BN_mod_mul_montgomery.3 b/lib/libcrypto/man/BN_mod_mul_montgomery.3 index 8feed711cd2..d87b50d6a8a 100644 --- a/lib/libcrypto/man/BN_mod_mul_montgomery.3 +++ b/lib/libcrypto/man/BN_mod_mul_montgomery.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.11 2018/03/27 17:35:50 schwarze Exp $ +.\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.12 2021/11/30 18:34:35 tb Exp $ .\" OpenSSL 6859cf74 Sep 25 13:33:28 2002 +0000 .\" .\" This file was written by Ulf Moeller . @@ -48,7 +48,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: November 30 2021 $ .Dt BN_MOD_MUL_MONTGOMERY 3 .Os .Sh NAME @@ -89,22 +89,22 @@ .Ft int .Fo BN_mod_mul_montgomery .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fa "BN_MONT_CTX *mont" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_from_montgomery .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "BN_MONT_CTX *mont" .Fa "BN_CTX *ctx" .Fc .Ft int .Fo BN_to_montgomery .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "BN_MONT_CTX *mont" .Fa "BN_CTX *ctx" .Fc diff --git a/lib/libcrypto/man/BN_mod_mul_reciprocal.3 b/lib/libcrypto/man/BN_mod_mul_reciprocal.3 index 9ace3576521..77c2932739f 100644 --- a/lib/libcrypto/man/BN_mod_mul_reciprocal.3 +++ b/lib/libcrypto/man/BN_mod_mul_reciprocal.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_mod_mul_reciprocal.3,v 1.10 2018/03/27 17:35:50 schwarze Exp $ +.\" $OpenBSD: BN_mod_mul_reciprocal.3,v 1.11 2021/11/30 18:34:35 tb Exp $ .\" OpenSSL 6859cf74 Sep 25 13:33:28 2002 +0000 .\" .\" This file was written by Ulf Moeller . @@ -48,7 +48,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: November 30 2021 $ .Dt BN_MOD_MUL_RECIPROCAL 3 .Os .Sh NAME @@ -64,8 +64,8 @@ .Ft int .Fo BN_mod_mul_reciprocal .Fa "BIGNUM *r" -.Fa "BIGNUM *a" -.Fa "BIGNUM *b" +.Fa "const BIGNUM *a" +.Fa "const BIGNUM *b" .Fa "BN_RECP_CTX *recp" .Fa "BN_CTX *ctx" .Fc @@ -91,7 +91,7 @@ .Fo BN_div_recp .Fa "BIGNUM *dv" .Fa "BIGNUM *rem" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "BN_RECP_CTX *recp" .Fa "BN_CTX *ctx" .Fc diff --git a/lib/libcrypto/man/BN_rand.3 b/lib/libcrypto/man/BN_rand.3 index c508738fd4f..3d4401a4297 100644 --- a/lib/libcrypto/man/BN_rand.3 +++ b/lib/libcrypto/man/BN_rand.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_rand.3,v 1.17 2021/09/10 14:37:14 tb Exp $ +.\" $OpenBSD: BN_rand.3,v 1.18 2021/11/30 18:34:35 tb Exp $ .\" full merge up to: OpenSSL 05ea606a May 20 20:52:46 2016 -0400 .\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100 .\" @@ -50,7 +50,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 10 2021 $ +.Dd $Mdocdate: November 30 2021 $ .Dt BN_RAND 3 .Os .Sh NAME @@ -71,7 +71,7 @@ .Ft int .Fo BN_rand_range .Fa "BIGNUM *rnd" -.Fa "BIGNUM *range" +.Fa "const BIGNUM *range" .Fc .Sh DESCRIPTION .Fn BN_rand diff --git a/lib/libcrypto/man/BN_set_bit.3 b/lib/libcrypto/man/BN_set_bit.3 index 93bfda6747e..2c53066777d 100644 --- a/lib/libcrypto/man/BN_set_bit.3 +++ b/lib/libcrypto/man/BN_set_bit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_set_bit.3,v 1.7 2018/03/27 17:35:50 schwarze Exp $ +.\" $OpenBSD: BN_set_bit.3,v 1.8 2021/11/30 18:34:35 tb Exp $ .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" .\" This file was written by Ulf Moeller . @@ -48,7 +48,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: November 30 2021 $ .Dt BN_SET_BIT 3 .Os .Sh NAME @@ -92,18 +92,18 @@ .Ft int .Fo BN_lshift1 .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fc .Ft int .Fo BN_rshift .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fa "int n" .Fc .Ft int .Fo BN_rshift1 .Fa "BIGNUM *r" -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fc .Sh DESCRIPTION .Fn BN_set_bit diff --git a/lib/libcrypto/man/BN_zero.3 b/lib/libcrypto/man/BN_zero.3 index f3ca4cdfb16..1e1d2fcf8d0 100644 --- a/lib/libcrypto/man/BN_zero.3 +++ b/lib/libcrypto/man/BN_zero.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: BN_zero.3,v 1.9 2018/03/27 17:35:50 schwarze Exp $ +.\" $OpenBSD: BN_zero.3,v 1.10 2021/11/30 18:34:35 tb Exp $ .\" full merge up to: OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 .\" selective merge up to: OpenSSL b713c4ff Jan 22 14:41:09 2018 -0500 .\" @@ -50,7 +50,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: November 30 2021 $ .Dt BN_ZERO 3 .Os .Sh NAME @@ -81,7 +81,7 @@ .Fc .Ft BN_ULONG .Fo BN_get_word -.Fa "BIGNUM *a" +.Fa "const BIGNUM *a" .Fc .Sh DESCRIPTION .Vt BN_ULONG -- 2.20.1