aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ffi.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-04-26 21:40:15 -0400
committerJack Lloyd <[email protected]>2019-04-26 21:40:15 -0400
commit7743c8e97a377ab3a24d590182d848b65d24dff2 (patch)
tree887ead8d61349be84b86113fd568fc2a0cd1a7d8 /src/tests/test_ffi.cpp
parent0b38f0c30bab4cf942863b4255ab2aabead556a4 (diff)
Fix feature macro checks.
Add a checker script.
Diffstat (limited to 'src/tests/test_ffi.cpp')
-rw-r--r--src/tests/test_ffi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp
index b0a8054d9..f2926d777 100644
--- a/src/tests/test_ffi.cpp
+++ b/src/tests/test_ffi.cpp
@@ -470,7 +470,7 @@ class FFI_Unit_Tests final : public Test
{
Test::Result result("FFI CBC cipher");
-#if defined(BOTAN_HAS_AES) && defined(BOTAN_HAS_CBC)
+#if defined(BOTAN_HAS_AES) && defined(BOTAN_HAS_MODE_CBC)
botan_cipher_t cipher_encrypt, cipher_decrypt;
if(TEST_FFI_OK(botan_cipher_init, (&cipher_encrypt, "AES-128/CBC/PKCS7", BOTAN_CIPHER_INIT_FLAG_ENCRYPT)))
@@ -1477,7 +1477,7 @@ class FFI_Unit_Tests final : public Test
TEST_FFI_OK(botan_privkey_load, (&copy, rng, privkey.data(), privkey.size(), nullptr));
botan_privkey_destroy(copy);
-#if defined(BOTAN_HAS_AES) && defined(BOTAN_HAS_PBES2)
+#if defined(BOTAN_HAS_AES) && defined(BOTAN_HAS_PKCS5_PBES2)
const size_t pbkdf_iter = 1000;
// export private key encrypted
@@ -1514,7 +1514,7 @@ class FFI_Unit_Tests final : public Test
const std::string pbe_hash = "SHA-512";
#endif
-#if defined(BOTAN_HAS_GCM)
+#if defined(BOTAN_HAS_AEAD_GCM)
const std::string pbe_cipher = "AES-256/GCM";
#else
const std::string pbe_cipher = "AES-256/CBC";