aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/g10/misc.c b/g10/misc.c
index 147592827..cd5c1bd7a 100644
--- a/g10/misc.c
+++ b/g10/misc.c
@@ -620,20 +620,14 @@ openpgp_aead_test_algo (aead_algo_t algo)
/* FIXME: We currently have no easy way to test whether libgcrypt
* implements a mode. The only way we can do this is to open a
* cipher context with that mode and close it immediately. That is
- * a bit costly. So we look at the libgcrypt version and assume
- * nothing has been patched out. */
+ * a bit costly. Thus in case we add another algo we need to look
+ * at the libgcrypt version and assume nothing has been patched out. */
switch (algo)
{
case AEAD_ALGO_NONE:
break;
case AEAD_ALGO_EAX:
-#if GCRYPT_VERSION_NUMBER < 0x010900
- break;
-#else
- return 0;
-#endif
-
case AEAD_ALGO_OCB:
return 0;
}