aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/pkcs10.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 20:20:32 +0200
committerSimon Warta <[email protected]>2015-07-03 10:33:45 +0200
commitf472b8fc61accbbaa6a36af9d2d20b0fde37a1a2 (patch)
tree8e71c24da6f7f5b037024741105ca392369e590a /src/cmd/pkcs10.cpp
parentcd9037e29f32197b9c37ef7bec955ac2372b543b (diff)
Make Botan compile when only some modules are enabled
Fixes #146.
Diffstat (limited to 'src/cmd/pkcs10.cpp')
-rw-r--r--src/cmd/pkcs10.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/pkcs10.cpp b/src/cmd/pkcs10.cpp
index ff5fa7bf9..847f898d5 100644
--- a/src/cmd/pkcs10.cpp
+++ b/src/cmd/pkcs10.cpp
@@ -6,15 +6,15 @@
#include "apps.h"
-#if defined(BOTAN_HAS_X509_CERTIFICATES)
+#if defined(BOTAN_HAS_X509_CERTIFICATES) && defined(BOTAN_HAS_RSA)
+
#include <botan/x509self.h>
#include <botan/rsa.h>
-#include <botan/dsa.h>
-using namespace Botan;
-
#include <fstream>
#include <memory>
+using namespace Botan;
+
namespace {
int pkcs10(int argc, char* argv[])
@@ -60,4 +60,4 @@ REGISTER_APP(pkcs10);
}
-#endif
+#endif // BOTAN_HAS_X509_CERTIFICATES && BOTAN_HAS_RSA