aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/pk_keys.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/pk_keys.h')
-rw-r--r--src/lib/pubkey/pk_keys.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/pubkey/pk_keys.h b/src/lib/pubkey/pk_keys.h
index 1e7bd3216..833dda69e 100644
--- a/src/lib/pubkey/pk_keys.h
+++ b/src/lib/pubkey/pk_keys.h
@@ -24,7 +24,9 @@ class RandomNumberGenerator;
class BOTAN_DLL Public_Key
{
public:
- virtual ~Public_Key() {}
+ virtual ~Public_Key() = default;
+
+ virtual Public_Key& operator=(const Public_Key& other) = default;
/**
* Get the name of the underlying public key scheme.
@@ -163,6 +165,10 @@ class BOTAN_DLL Public_Key
class BOTAN_DLL Private_Key : public virtual Public_Key
{
public:
+ virtual ~Private_Key() = default;
+
+ virtual Private_Key& operator=(const Private_Key& other) = default;
+
/**
* @return BER encoded private key bits
*/