aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dl_algo
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-27 21:52:32 -0500
committerJack Lloyd <[email protected]>2017-01-27 21:52:32 -0500
commit5cbba3ad662fa76090a3bea546a1178a011737a7 (patch)
treed8945e2343f8cfbb2c80bd4e903dbe549041c120 /src/lib/pubkey/dl_algo
parent887be8a3178386309a2b7cf356bf2933d9cd1068 (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/dl_algo')
-rw-r--r--src/lib/pubkey/dl_algo/dl_algo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/pubkey/dl_algo/dl_algo.h b/src/lib/pubkey/dl_algo/dl_algo.h
index 044aae2e6..4c0d56931 100644
--- a/src/lib/pubkey/dl_algo/dl_algo.h
+++ b/src/lib/pubkey/dl_algo/dl_algo.h
@@ -73,6 +73,8 @@ class BOTAN_DLL DL_Scheme_PublicKey : public virtual Public_Key
const std::vector<uint8_t>& key_bits,
DL_Group::Format group_format);
+ DL_Scheme_PublicKey& operator=(const DL_Scheme_PublicKey& other) = default;
+
protected:
DL_Scheme_PublicKey() {}
@@ -114,6 +116,8 @@ class BOTAN_DLL DL_Scheme_PrivateKey : public virtual DL_Scheme_PublicKey,
const secure_vector<uint8_t>& key_bits,
DL_Group::Format group_format);
+ DL_Scheme_PrivateKey& operator=(const DL_Scheme_PrivateKey& other) = default;
+
protected:
DL_Scheme_PrivateKey() {}