From 2d3d341854cad6433cf88c2e65172a98dac2404d Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 4 Mar 2010 04:46:04 +0000 Subject: Fix loading ElGamal keys --- src/pubkey/pk_algs.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pubkey/pk_algs.cpp b/src/pubkey/pk_algs.cpp index 132e9f35c..18e08f82e 100644 --- a/src/pubkey/pk_algs.cpp +++ b/src/pubkey/pk_algs.cpp @@ -8,8 +8,6 @@ #include #include -#include - #if defined(BOTAN_HAS_RSA) #include #endif @@ -76,8 +74,8 @@ BOTAN_DLL Public_Key* make_public_key(const AlgorithmIdentifier& alg_id, return new NR_PublicKey(alg_id, key_bits); #endif -#if defined(BOTAN_HAS_ELG) - if(alg_name == "ELG") +#if defined(BOTAN_HAS_ELGAMAL) + if(alg_name == "ElGamal") return new ElGamal_PublicKey(alg_id, key_bits); #endif @@ -127,8 +125,8 @@ BOTAN_DLL Private_Key* make_private_key(const AlgorithmIdentifier& alg_id, return new NR_PrivateKey(alg_id, key_bits, rng); #endif -#if defined(BOTAN_HAS_ELG) - if(alg_name == "ELG") +#if defined(BOTAN_HAS_ELGAMAL) + if(alg_name == "ElGamal") return new ElGamal_PrivateKey(alg_id, key_bits, rng); #endif -- cgit v1.2.3