From: FdaSilvaYY Date: Sat, 20 Feb 2021 23:04:07 +0000 (+0100) Subject: Fix '--strict-warnings' build breakage due to a missing const. X-Git-Tag: openssl-3.1.7~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ac6d7fb10d22ca690c28583fa065104a4c0e66;p=thirdparty%2Fopenssl.git Fix '--strict-warnings' build breakage due to a missing const. Reviewed-by: Tom Cosgrove Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25111) (cherry picked from commit ef4df981aecfc6c3cdc1585a1c07b199db711ec1) --- diff --git a/include/crypto/bn.h b/include/crypto/bn.h index 15e202b18b4..f8855d84632 100644 --- a/include/crypto/bn.h +++ b/include/crypto/bn.h @@ -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,