aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c b/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c
index 17e6ef26f..f82d23185 100644
--- a/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c
+++ b/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c
@@ -180,6 +180,7 @@ gcrypt_crypter_t *gcrypt_crypter_create(encryption_algorithm_t algo,
case ENCR_CAMELLIA_CBC:
switch (key_size)
{
+#ifdef HAVE_GCRY_CIPHER_CAMELLIA
case 16:
gcrypt_alg = GCRY_CIPHER_CAMELLIA128;
break;
@@ -189,6 +190,7 @@ gcrypt_crypter_t *gcrypt_crypter_create(encryption_algorithm_t algo,
case 32:
gcrypt_alg = GCRY_CIPHER_CAMELLIA256;
break;
+#endif /* HAVE_GCRY_CIPHER_CAMELLIA */
default:
return NULL;
}