aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/ocsp.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-12-08 19:56:19 +0100
committerSimon Warta <[email protected]>2015-12-08 22:02:28 +0100
commit368d087e3973db9d8c5b70443d31c27c03dfdbef (patch)
tree9059a52c70eee8b825d9fd7fa14194940853b86a /src/cmd/ocsp.cpp
parent53fca25da331d168b0433ba2e41b06aae9d17f5c (diff)
Replace C interfaces in cli apps with C++ interfaces
Diffstat (limited to 'src/cmd/ocsp.cpp')
-rw-r--r--src/cmd/ocsp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/ocsp.cpp b/src/cmd/ocsp.cpp
index a939b4680..e5b42b076 100644
--- a/src/cmd/ocsp.cpp
+++ b/src/cmd/ocsp.cpp
@@ -17,16 +17,16 @@ using namespace Botan;
namespace {
-int ocsp_check(int argc, char* argv[])
+int ocsp_check(const std::vector<std::string> &args)
{
- if(argc != 2)
+ if(args.size() != 2)
{
- std::cout << "Usage: ocsp subject.pem issuer.pem";
+ std::cout << "Usage: " << args[0] << " subject.pem issuer.pem" << std::endl;
return 2;
}
- X509_Certificate subject(argv[1]);
- X509_Certificate issuer(argv[2]);
+ X509_Certificate subject(args[1]);
+ X509_Certificate issuer(args[2]);
Certificate_Store_In_Memory cas;
cas.add_certificate(issuer);