aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-06-07 18:21:15 -0400
committerJack Lloyd <[email protected]>2017-06-07 18:21:15 -0400
commitea07ab696e7da0d64362f946892350b9766c0379 (patch)
treec6f0ef8ad4d56b2185d13c57f40c0e81c35b06f8 /src/lib/pubkey
parent43b35006889f8a9e2ae326ddd482240ada180ab4 (diff)
Avoid move operators in MSVC2013
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/ed25519/ed25519_fe.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/pubkey/ed25519/ed25519_fe.h b/src/lib/pubkey/ed25519/ed25519_fe.h
index 78fe78dfc..f1f959591 100644
--- a/src/lib/pubkey/ed25519/ed25519_fe.h
+++ b/src/lib/pubkey/ed25519/ed25519_fe.h
@@ -21,6 +21,8 @@ namespace Botan {
class FE_25519
{
public:
+ ~FE_25519() { secure_scrub_memory(m_fe, sizeof(m_fe)); }
+
/**
* Zero element
*/
@@ -55,10 +57,12 @@ class FE_25519
}
FE_25519(const FE_25519& other) = default;
- FE_25519(FE_25519&& other) = default;
FE_25519& operator=(const FE_25519& other) = default;
+
+#if defined(BOTAN_BUILD_COMPILER_IS_MSVC_2013)
+ FE_25519(FE_25519&& other) = default;
FE_25519& operator=(FE_25519&& other) = default;
- ~FE_25519() { secure_scrub_memory(m_fe, sizeof(m_fe)); }
+#endif
void from_bytes(const uint8_t b[32]);
void to_bytes(uint8_t b[32]) const;