From 9a69d65a8ea92f97aa531c58c8d0d0816568b1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Fri, 29 Nov 2024 10:12:27 +0100 Subject: [PATCH] Remove ECB tests when using Botan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From Botan v2.0.0 (2017-01-06) release notes: The deprecated ECB Cipher_Mode class has been removed (GH #756) Signed-off-by: Björn Svensson --- src/lib/crypto/test/AESTests.h | 2 ++ src/lib/crypto/test/DESTests.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib/crypto/test/AESTests.h b/src/lib/crypto/test/AESTests.h index a0c29dc28..a7dd45afa 100644 --- a/src/lib/crypto/test/AESTests.h +++ b/src/lib/crypto/test/AESTests.h @@ -41,7 +41,9 @@ class AESTests : public CppUnit::TestFixture CPPUNIT_TEST_SUITE(AESTests); CPPUNIT_TEST(testBlockSize); CPPUNIT_TEST(testCBC); +#ifndef WITH_BOTAN CPPUNIT_TEST(testECB); +#endif CPPUNIT_TEST(testCTR); CPPUNIT_TEST(testGCM); #ifdef HAVE_AES_KEY_WRAP diff --git a/src/lib/crypto/test/DESTests.h b/src/lib/crypto/test/DESTests.h index 083446287..6e48da9b1 100644 --- a/src/lib/crypto/test/DESTests.h +++ b/src/lib/crypto/test/DESTests.h @@ -41,7 +41,9 @@ class DESTests : public CppUnit::TestFixture CPPUNIT_TEST_SUITE(DESTests); CPPUNIT_TEST(testBlockSize); CPPUNIT_TEST(testCBC); +#ifndef WITH_BOTAN CPPUNIT_TEST(testECB); +#endif CPPUNIT_TEST(testOFB); CPPUNIT_TEST(testCFB); CPPUNIT_TEST_SUITE_END();