From: Matt Caswell Date: Thu, 6 Feb 2020 16:59:49 +0000 (+0000) Subject: Fix no-des X-Git-Tag: openssl-3.0.0-alpha1~509 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e89ffd23c37905574b3beab163b298dabb9f7a20;p=oweals%2Fopenssl.git Fix no-des Don't attempt to self-test DES in the FIPS provider if we have been built without FIPS support. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/11034) --- diff --git a/providers/fips/self_test_data.inc b/providers/fips/self_test_data.inc index 28616a0079..1ee83e0d1c 100644 --- a/providers/fips/self_test_data.inc +++ b/providers/fips/self_test_data.inc @@ -141,6 +141,7 @@ static const unsigned char aes_256_gcm_tag[] = { }; static const ST_KAT_CIPHER st_kat_cipher_tests[] = { +#ifndef OPENSSL_NO_DES { { OSSL_SELF_TEST_DESC_CIPHER_TDES, @@ -151,6 +152,7 @@ static const ST_KAT_CIPHER st_kat_cipher_tests[] = { ITM(des_ede3_cbc_key), ITM(des_ede3_cbc_iv), }, +#endif { { OSSL_SELF_TEST_DESC_CIPHER_AES_GCM,