aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.cpp
diff options
context:
space:
mode:
authorKrzysztof Kwiatkowski <[email protected]>2017-06-10 19:28:32 +0100
committerKrzysztof Kwiatkowski <[email protected]>2017-06-10 19:28:32 +0100
commitcf04d03f028d168a2d1e877ae7afab1e8b34b51c (patch)
treec86fbe8c5d0f597933abc11512ab7a045a9830e1 /src/lib/ffi/ffi.cpp
parentf5789926494e85bb73740cbb5593e399ef0601ee (diff)
FFI: privkey_load_ec and pubkey_load_ec should be available only if ECDSA or ECDH is compiled
Diffstat (limited to 'src/lib/ffi/ffi.cpp')
-rw-r--r--src/lib/ffi/ffi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp
index 4fcb73f82..04ac701a8 100644
--- a/src/lib/ffi/ffi.cpp
+++ b/src/lib/ffi/ffi.cpp
@@ -335,7 +335,7 @@ int privkey_load_ec(std::unique_ptr<ECPrivateKey_t>& key,
const Botan::BigInt& scalar,
const char* curve_name)
{
-#if defined(BOTAN_HAS_ECC_PUBLIC_KEY_CRYPTO)
+#if defined(BOTAN_HAS_ECDSA) || defined(BOTAN_HAS_ECDH)
if(curve_name == nullptr)
return -1;
@@ -365,7 +365,7 @@ int pubkey_load_ec( std::unique_ptr<ECPublicKey_t>& key,
const Botan::BigInt& public_y,
const char* curve_name)
{
-#if defined(BOTAN_HAS_ECC_PUBLIC_KEY_CRYPTO)
+#if defined(BOTAN_HAS_ECDSA) || defined(BOTAN_HAS_ECDH)
if(curve_name == nullptr)
return -1;