aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/self_sig.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-11-12 01:23:55 +0000
committerlloyd <[email protected]>2014-11-12 01:23:55 +0000
commit8b0cbccc7b11e545ed27bc6d7bda04b5cf632e60 (patch)
tree7ea9368d6ccaa85337a63b55e8bd15efa46fd357 /src/cmd/self_sig.cpp
parent67161b91163afad417f9483cb557b26c5f5f4bc0 (diff)
Command line prog cleanup
Diffstat (limited to 'src/cmd/self_sig.cpp')
-rw-r--r--src/cmd/self_sig.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cmd/self_sig.cpp b/src/cmd/self_sig.cpp
index 592a7f279..2bef9492d 100644
--- a/src/cmd/self_sig.cpp
+++ b/src/cmd/self_sig.cpp
@@ -1,15 +1,17 @@
#include "apps.h"
+
#if defined(BOTAN_HAS_X509_CERTIFICATES)
#include <botan/x509self.h>
#include <botan/rsa.h>
#include <botan/dsa.h>
using namespace Botan;
-#include <iostream>
#include <fstream>
#include <memory>
-int self_sig_main(int argc, char* argv[])
+namespace {
+
+int self_sig(int argc, char* argv[])
{
if(argc != 7)
{
@@ -69,4 +71,9 @@ int self_sig_main(int argc, char* argv[])
return 0;
}
+
+REGISTER_APP(self_sig);
+
+}
+
#endif