diff options
author | Simon Warta <[email protected]> | 2015-12-08 19:56:19 +0100 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-12-08 22:02:28 +0100 |
commit | 368d087e3973db9d8c5b70443d31c27c03dfdbef (patch) | |
tree | 9059a52c70eee8b825d9fd7fa14194940853b86a /src/cmd/ocsp.cpp | |
parent | 53fca25da331d168b0433ba2e41b06aae9d17f5c (diff) |
Replace C interfaces in cli apps with C++ interfaces
Diffstat (limited to 'src/cmd/ocsp.cpp')
-rw-r--r-- | src/cmd/ocsp.cpp | 10 |
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); |