diff options
author | lloyd <[email protected]> | 2014-11-12 01:23:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-12 01:23:55 +0000 |
commit | 8b0cbccc7b11e545ed27bc6d7bda04b5cf632e60 (patch) | |
tree | 7ea9368d6ccaa85337a63b55e8bd15efa46fd357 /src/cmd/ca.cpp | |
parent | 67161b91163afad417f9483cb557b26c5f5f4bc0 (diff) |
Command line prog cleanup
Diffstat (limited to 'src/cmd/ca.cpp')
-rw-r--r-- | src/cmd/ca.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/cmd/ca.cpp b/src/cmd/ca.cpp index 7dba4c7fe..453258ac6 100644 --- a/src/cmd/ca.cpp +++ b/src/cmd/ca.cpp @@ -1,14 +1,14 @@ #include "apps.h" + #if defined(BOTAN_HAS_X509_CERTIFICATES) #include <botan/x509_ca.h> -using namespace Botan; -#include <iostream> -#include <memory> -#include <chrono> +namespace { -int ca_main(int argc, char* argv[]) +int ca(int argc, char* argv[]) { + using namespace Botan; + if(argc != 5) { std::cout << "Usage: " << argv[0] << " <passphrase> " @@ -61,4 +61,9 @@ int ca_main(int argc, char* argv[]) } return 0; } + +REGISTER_APP(ca); + +} + #endif |