From 25ecb8dafafad5f8494188d7ca13979e839d10ec Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 15 Jun 2009 18:18:04 +0200 Subject: [PATCH] gcrypt actually does not implement IDEA --- src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c | 4 ++-- src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c b/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c index 3bf513f55..17e6ef26f 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c @@ -143,8 +143,8 @@ gcrypt_crypter_t *gcrypt_crypter_create(encryption_algorithm_t algo, gcrypt_alg = GCRY_CIPHER_3DES; break; case ENCR_IDEA: - gcrypt_alg = GCRY_CIPHER_IDEA; - break; + /* currently not implemented in gcrypt */ + return NULL; case ENCR_CAST: gcrypt_alg = GCRY_CIPHER_CAST5; break; diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c index 1d6d74a7b..23a8df83a 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c @@ -160,8 +160,6 @@ plugin_t *plugin_create() /* crypters */ lib->crypto->add_crypter(lib->crypto, ENCR_3DES, (crypter_constructor_t)gcrypt_crypter_create); - lib->crypto->add_crypter(lib->crypto, ENCR_IDEA, - (crypter_constructor_t)gcrypt_crypter_create); lib->crypto->add_crypter(lib->crypto, ENCR_CAST, (crypter_constructor_t)gcrypt_crypter_create); lib->crypto->add_crypter(lib->crypto, ENCR_BLOWFISH,