aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/cert_verify.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/cert_verify.cpp
parent67161b91163afad417f9483cb557b26c5f5f4bc0 (diff)
Command line prog cleanup
Diffstat (limited to 'src/cmd/cert_verify.cpp')
-rw-r--r--src/cmd/cert_verify.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/cmd/cert_verify.cpp b/src/cmd/cert_verify.cpp
index daf7240f2..800ac8f6c 100644
--- a/src/cmd/cert_verify.cpp
+++ b/src/cmd/cert_verify.cpp
@@ -6,15 +6,17 @@
*/
#include "apps.h"
+
#if defined(BOTAN_HAS_X509_CERTIFICATES)
-#include <botan/x509cert.h>
+
#include <botan/x509path.h>
-#include <iostream>
-using namespace Botan;
+namespace {
-int cert_verify_main(int argc, char* argv[])
+int cert_verify(int argc, char* argv[])
{
+ using namespace Botan;
+
if(argc <= 2)
{
std::cout << "Usage: " << argv[0] << " subject.pem [CA certificates...]\n";
@@ -42,4 +44,9 @@ int cert_verify_main(int argc, char* argv[])
return 0;
}
+
+}
+
+REGISTER_APP(cert_verify);
+
#endif