aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/libstate/engine.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-01 13:48:44 +0000
committerlloyd <[email protected]>2008-10-01 13:48:44 +0000
commitc3cc27653551f2fddebcab66a0220df3d1a2ea66 (patch)
tree35ea9fbbe338146e33d5d7fa4042e3ccb91c4f37 /src/core/libstate/engine.cpp
parentbaf45319439d1225c224ec9ab9492683d3722ec6 (diff)
Guard uses of ECDSA in the library with BOTAN_HAS_ECDSA macro, so it can
be disabled. Disable gfpmath by default due to TR1 dependency (this will automatically turn of ECDSA/ECKAEG, unless gfpmath is explicitly loaded with --enable-module=gfpmath).
Diffstat (limited to 'src/core/libstate/engine.cpp')
-rw-r--r--src/core/libstate/engine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/libstate/engine.cpp b/src/core/libstate/engine.cpp
index 14c1c9c50..fb2477936 100644
--- a/src/core/libstate/engine.cpp
+++ b/src/core/libstate/engine.cpp
@@ -100,6 +100,7 @@ DH_Operation* dh_op(const DL_Group& group, const BigInt& x)
throw Lookup_Error("Engine_Core::dh_op: Unable to find a working engine");
}
+#if defined(BOTAN_HAS_ECDSA)
/*************************************************
* Acquire an ECDSA op *
*************************************************/
@@ -137,6 +138,7 @@ ECKAEG_Operation* eckaeg_op(const EC_Domain_Params& dom_pars,
throw Lookup_Error("Engine_Core::eckaeg_op: Unable to find a working engine");
}
+#endif
/*************************************************
* Acquire a modular exponentiator *