aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-12-26 22:08:02 -0500
committerJack Lloyd <[email protected]>2015-12-26 22:08:02 -0500
commitfce8f2149757b6b234d89685e58db79ade27040a (patch)
tree8d718cc72ef23cdcf8d9f6a156ed3b61d1879e63 /src/lib/cert
parentc2515f7b098a5569cb97a134ffa83fc475cac07c (diff)
parent8b7a31fbfcbbd47f34f4f4edad4d05f25a9d0ecd (diff)
Merge pull request #378 from neusdan/warning_fixes
Some trivial compiler and PVS-Studio warning fixes
Diffstat (limited to 'src/lib/cert')
-rw-r--r--src/lib/cert/x509/x509_obj.cpp2
-rw-r--r--src/lib/cert/x509/x509path.cpp2
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";
}