diff options
author | Daniel Neus <[email protected]> | 2015-12-22 21:50:43 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2015-12-22 21:50:43 +0100 |
commit | aedb8d8ef646ed480296eb0a53513c74475cef08 (patch) | |
tree | b57a9fc558d859baf39730278b7f56d881c31e6e /src/lib/cert/x509 | |
parent | a589d7a2ede70871d3f563ed34cdd3c10046e5c2 (diff) |
some trivial compiler/PVS-Studio warning fixes
Diffstat (limited to 'src/lib/cert/x509')
-rw-r--r-- | src/lib/cert/x509/x509_obj.cpp | 2 | ||||
-rw-r--r-- | src/lib/cert/x509/x509path.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/cert/x509/x509_obj.cpp b/src/lib/cert/x509/x509_obj.cpp index 4dae68607..e908e8cab 100644 --- a/src/lib/cert/x509/x509_obj.cpp +++ b/src/lib/cert/x509/x509_obj.cpp @@ -201,7 +201,7 @@ bool X509_Object::check_signature(const Public_Key& pub_key) const return verifier.verify_message(tbs_data(), signature()); } - catch(std::exception& e) + catch(std::exception&) { return false; } diff --git a/src/lib/cert/x509/x509path.cpp b/src/lib/cert/x509/x509path.cpp index 7e54ad9f9..5e12ddb2a 100644 --- a/src/lib/cert/x509/x509path.cpp +++ b/src/lib/cert/x509/x509path.cpp @@ -170,7 +170,7 @@ check_chain(const std::vector<X509_Certificate>& cert_path, else if(ocsp_status == Certificate_Status_Code::OCSP_RESPONSE_GOOD) continue; } - catch(std::exception& e) + catch(std::exception&) { //std::cout << "OCSP error: " << e.what() << "\n"; } |