support older gcrypt libraries not defining the CAMELLIA cipher

This commit is contained in:
Martin Willi committed 2009-06-16 14:23:32 +02:00
1 parent 24d7b25d21
commit 62d6da67dd
2 files changed
+9

No files matched your search

@@ -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;
}