diff options
author | Daniel Seither <[email protected]> | 2015-07-30 19:29:56 +0200 |
---|---|---|
committer | Daniel Seither <[email protected]> | 2015-07-30 19:29:56 +0200 |
commit | 313b1b4e75d8ee6f1d271f7de2e21facb85b2c46 (patch) | |
tree | d089235f934aa5edd842616222dc2295df308f19 /src/cmd | |
parent | 9d0d6b281b18962445e6fc1be24cafd5ecc0ca40 (diff) |
cmd: Add missing overrides
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/credentials.h | 8 | ||||
-rw-r--r-- | src/cmd/fuzzer.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/credentials.h b/src/cmd/credentials.h index afd83420b..9056f31eb 100644 --- a/src/cmd/credentials.h +++ b/src/cmd/credentials.h @@ -82,7 +82,7 @@ class Basic_Credentials_Manager : public Credentials_Manager std::vector<Botan::Certificate_Store*> trusted_certificate_authorities(const std::string& type, - const std::string& /*hostname*/) + const std::string& /*hostname*/) override { std::vector<Botan::Certificate_Store*> v; @@ -99,7 +99,7 @@ class Basic_Credentials_Manager : public Credentials_Manager void verify_certificate_chain( const std::string& type, const std::string& purported_hostname, - const std::vector<X509_Certificate>& cert_chain) + const std::vector<X509_Certificate>& cert_chain) override { try { @@ -117,7 +117,7 @@ class Basic_Credentials_Manager : public Credentials_Manager std::vector<X509_Certificate> cert_chain( const std::vector<std::string>& algos, const std::string& type, - const std::string& hostname) + const std::string& hostname) override { BOTAN_UNUSED(type); @@ -137,7 +137,7 @@ class Basic_Credentials_Manager : public Credentials_Manager Private_Key* private_key_for(const X509_Certificate& cert, const std::string& /*type*/, - const std::string& /*context*/) + const std::string& /*context*/) override { for(auto&& i : m_creds) { diff --git a/src/cmd/fuzzer.cpp b/src/cmd/fuzzer.cpp index a94706967..2bbffd288 100644 --- a/src/cmd/fuzzer.cpp +++ b/src/cmd/fuzzer.cpp @@ -38,9 +38,9 @@ class Fuzzer_Creds : public Credentials_Manager catch(std::exception& e) {} } - std::string psk_identity_hint(const std::string&, const std::string&) { return "psk_hint"; } + std::string psk_identity_hint(const std::string&, const std::string&) override { return "psk_hint"; } std::string psk_identity(const std::string&, const std::string&) { return "psk_id"; } - SymmetricKey psk(const std::string&, const std::string&, const std::string&) + SymmetricKey psk(const std::string&, const std::string&, const std::string&) override { return SymmetricKey("AABBCCDDEEFF00112233445566778899"); } |