]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix '--strict-warnings' build breakage
authorFdaSilvaYY <fdasilvayy@gmail.com>
Sat, 20 Feb 2021 23:04:07 +0000 (00:04 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 7 Aug 2024 17:24:57 +0000 (19:24 +0200)
... due to a missing const.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24968)

include/crypto/bn.h

index 128cae3bf8558fab4ddaaf865a823953b5ffcd22..47d9b44f879f013b6a62cff46b109144e340aeea 100644 (file)
@@ -88,7 +88,7 @@ int bn_rshift_fixed_top(BIGNUM *r, const BIGNUM *a, int n);
 int bn_div_fixed_top(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
                      const BIGNUM *d, BN_CTX *ctx);
 int ossl_bn_mask_bits_fixed_top(BIGNUM *a, int n);
-int ossl_bn_is_word_fixed_top(const BIGNUM *a, BN_ULONG w);
+int ossl_bn_is_word_fixed_top(const BIGNUM *a, const BN_ULONG w);
 int ossl_bn_priv_rand_range_fixed_top(BIGNUM *r, const BIGNUM *range,
                                       unsigned int strength, BN_CTX *ctx);
 int ossl_bn_gen_dsa_nonce_fixed_top(BIGNUM *out, const BIGNUM *range,