aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-22 09:20:10 -0500
committerJack Lloyd <[email protected]>2017-12-22 09:20:10 -0500
commit61c5f407ec489e974da553179b7ce91a95007329 (patch)
treec9fa36c9aed4dee46c44399988374504b85d0d87 /src/lib/pk_pad/emsa.h
parentd396d780c39c5d42dec411cc7286bbae9e18562d (diff)
Avoid unused parameter warnings
Diffstat (limited to 'src/lib/pk_pad/emsa.h')
-rw-r--r--src/lib/pk_pad/emsa.h7
1 files changed, 3 insertions, 4 deletions
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