diff options
author | Jack Lloyd <[email protected]> | 2017-01-27 21:52:32 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-01-27 21:52:32 -0500 |
commit | 5cbba3ad662fa76090a3bea546a1178a011737a7 (patch) | |
tree | d8945e2343f8cfbb2c80bd4e903dbe549041c120 /src/lib/pubkey/pk_keys.h | |
parent | 887be8a3178386309a2b7cf356bf2933d9cd1068 (diff) |
Add =default copy constructor decls for some pubkey types.
This inhibits default creation of C++11 move operators which we
do not want.
GH #849
Diffstat (limited to 'src/lib/pubkey/pk_keys.h')
-rw-r--r-- | src/lib/pubkey/pk_keys.h | 8 |
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 */ |