The unified diff between revisions [75daca8d..] and [08eaf28d..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'pk_algs.cpp'

#
#
# patch "pk_algs.cpp"
#  from [004d3768624059675382b2c999587af76e10c943]
#    to [4eaf5dca76443211e7486ca651ae5521d7cb7181]
#
============================================================
--- pk_algs.cpp	004d3768624059675382b2c999587af76e10c943
+++ pk_algs.cpp	4eaf5dca76443211e7486ca651ae5521d7cb7181
@@ -5,11 +5,6 @@

 #include <botan/pk_algs.h>
 #include <botan/rsa.h>
-#include <botan/dsa.h>
-#include <botan/dh.h>
-#include <botan/nr.h>
-#include <botan/rw.h>
-#include <botan/elgamal.h>

 namespace Botan {

@@ -19,11 +14,6 @@ X509_PublicKey* get_public_key(const std
 X509_PublicKey* get_public_key(const std::string& alg_name)
    {
    if(alg_name == "RSA")      return new RSA_PublicKey;
-   else if(alg_name == "DSA") return new DSA_PublicKey;
-   else if(alg_name == "DH")  return new DH_PublicKey;
-   else if(alg_name == "NR")  return new NR_PublicKey;
-   else if(alg_name == "RW")  return new RW_PublicKey;
-   else if(alg_name == "ELG") return new ElGamal_PublicKey;
    else
       return 0;
    }
@@ -34,11 +24,6 @@ PKCS8_PrivateKey* get_private_key(const
 PKCS8_PrivateKey* get_private_key(const std::string& alg_name)
    {
    if(alg_name == "RSA")      return new RSA_PrivateKey;
-   else if(alg_name == "DSA") return new DSA_PrivateKey;
-   else if(alg_name == "DH")  return new DH_PrivateKey;
-   else if(alg_name == "NR")  return new NR_PrivateKey;
-   else if(alg_name == "RW")  return new RW_PrivateKey;
-   else if(alg_name == "ELG") return new ElGamal_PrivateKey;
    else
       return 0;
    }