aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/self_sig.cpp
diff options
context:
space:
mode:
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