diff options
author | Jack Lloyd <[email protected]> | 2017-12-22 09:20:10 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-22 09:20:10 -0500 |
commit | 61c5f407ec489e974da553179b7ce91a95007329 (patch) | |
tree | c9fa36c9aed4dee46c44399988374504b85d0d87 | |
parent | d396d780c39c5d42dec411cc7286bbae9e18562d (diff) |
Avoid unused parameter warnings
-rw-r--r-- | src/lib/pk_pad/emsa.cpp | 6 | ||||
-rw-r--r-- | src/lib/pk_pad/emsa.h | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/pk_pad/emsa.cpp b/src/lib/pk_pad/emsa.cpp index 9904a0e2f..126e1421d 100644 --- a/src/lib/pk_pad/emsa.cpp +++ b/src/lib/pk_pad/emsa.cpp @@ -35,6 +35,12 @@ namespace Botan { +AlgorithmIdentifier EMSA::config_for_x509(const Private_Key&, + const std::string&) const + { + throw Not_Implemented("Encoding " + name() + " not supported for signing X509 objects"); + } + EMSA* get_emsa(const std::string& algo_spec) { SCAN_Name req(algo_spec); diff --git a/src/lib/pk_pad/emsa.h b/src/lib/pk_pad/emsa.h index db835f1bd..d18edc757 100644 --- a/src/lib/pk_pad/emsa.h +++ b/src/lib/pk_pad/emsa.h @@ -24,6 +24,8 @@ class RandomNumberGenerator; class BOTAN_PUBLIC_API(2,0) EMSA { public: + virtual ~EMSA() = default; + /** * Add more data to the signature computation * @param input some data @@ -67,10 +69,7 @@ class BOTAN_PUBLIC_API(2,0) EMSA * @return padding string to be consumed by PK_signer */ virtual AlgorithmIdentifier config_for_x509(const Private_Key& key, - const std::string& cert_hash_name) const - { throw Not_Implemented("Encoding " + name() + " not supported for signing X509 objects"); } - - virtual ~EMSA() = default; + const std::string& cert_hash_name) const; /** * @return a new object representing the same encoding method as *this |