diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-04-29 19:12:38 +0200 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-04-30 14:02:22 +0200 |
commit | 96384e613ae7092fb6f63daa69a9601d128416b2 (patch) | |
tree | e4be067ca6fa6a3fa3c5ab6ecfef8e9124202031 /crypto/rsa | |
parent | 8f0dd6d9eec0e52feb1b19725c7134684bff28bc (diff) | |
download | openssl-new-96384e613ae7092fb6f63daa69a9601d128416b2.tar.gz |
FIPS: Fix compiler errors in rsa_chk.c when building with `-DFIPS_MODE`
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8843)
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_chk.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crypto/rsa/rsa_chk.c b/crypto/rsa/rsa_chk.c index 4f65dfa64b..96a13b3330 100644 --- a/crypto/rsa/rsa_chk.c +++ b/crypto/rsa/rsa_chk.c @@ -25,11 +25,9 @@ int RSA_check_key(const RSA *key) int RSA_check_key_ex(const RSA *key, BN_GENCB *cb) { #ifdef FIPS_MODE - if (!(rsa_sp800_56b_check_public(key) - && rsa_sp800_56b_check_private(key) - && rsa_sp800_56b_check_keypair(key, NULL, -1, RSA_bits(key)) - return 0; - + return rsa_sp800_56b_check_public(key) + && rsa_sp800_56b_check_private(key) + && rsa_sp800_56b_check_keypair(key, NULL, -1, RSA_bits(key)); #else BIGNUM *i, *j, *k, *l, *m; BN_CTX *ctx; |