diff options
author | Jack Lloyd <[email protected]> | 2019-02-16 11:25:38 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-02-16 11:25:38 -0500 |
commit | b8199a7a4f8cff49a6c09ffc769494d48ae7f3fd (patch) | |
tree | 3fa352d2bdb512c1c64b7c4b194e23b2a8ba4603 /src/tests/test_ffi.cpp | |
parent | 60e00a8282cf509fb92005a8a5812ab90215899d (diff) |
Fixes for minimized builds
Various configurations would fail build or test, fix that.
Diffstat (limited to 'src/tests/test_ffi.cpp')
-rw-r--r-- | src/tests/test_ffi.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp index ce9dc94d5..2e59faec2 100644 --- a/src/tests/test_ffi.cpp +++ b/src/tests/test_ffi.cpp @@ -1511,9 +1511,15 @@ class FFI_Unit_Tests final : public Test const std::string pbe_hash = "SHA-512"; #endif +#if defined(BOTAN_HAS_GCM) + const std::string pbe_cipher = "AES-256/GCM"; +#else + const std::string pbe_cipher = "AES-256/CBC"; +#endif + TEST_FFI_OK(botan_privkey_export_encrypted_pbkdf_msec, (priv, privkey.data(), &privkey_len, rng, "password", - pbkdf_msec, &pbkdf_iters_out, "AES-256/GCM", pbe_hash.c_str(), 0)); + pbkdf_msec, &pbkdf_iters_out, pbe_cipher.c_str(), pbe_hash.c_str(), 0)); if(pbe_hash == "Scrypt") { |