diff options
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); |