diff options
author | lloyd <[email protected]> | 2008-09-28 20:41:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 20:41:59 +0000 |
commit | 062e7a3dc98af064792967cfac44f61b0e7b0d8a (patch) | |
tree | d8902fae073fd8268424ab804ae9d26b1fd3339d /checks/x509.cpp | |
parent | 25995ac07f9630b3e1da2c503054b9307b3fd788 (diff) |
Modularize the public key algorithms, though currently a great deal of
the underlying implementation goop remains in the core library instead of
being shunted off, due to various dependencies it has (most of which it
shouldn't).
Diffstat (limited to 'checks/x509.cpp')
-rw-r--r-- | checks/x509.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/checks/x509.cpp b/checks/x509.cpp index 5f5c6b1fa..d3fbc2bd9 100644 --- a/checks/x509.cpp +++ b/checks/x509.cpp @@ -1,13 +1,19 @@ #include <botan/filters.h> -#include <botan/rsa.h> -#include <botan/dsa.h> + +#if defined(BOTAN_HAS_RSA) + #include <botan/rsa.h> +#endif + +#if defined(BOTAN_HAS_DSA) + #include <botan/dsa.h> +#endif #ifdef BOTAN_HAS_X509 -#include <botan/x509self.h> -#include <botan/x509stor.h> -#include <botan/x509_ca.h> -#include <botan/pkcs10.h> + #include <botan/x509self.h> + #include <botan/x509stor.h> + #include <botan/x509_ca.h> + #include <botan/pkcs10.h> #endif using namespace Botan; @@ -18,7 +24,7 @@ using namespace Botan; #include "validate.h" #include "common.h" -#ifdef BOTAN_HAS_X509 +#if defined(BOTAN_HAS_X509) && defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_DSA) namespace { |