summaryrefslogtreecommitdiff
path: root/eccrypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'eccrypto.h')
-rw-r--r--eccrypto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/eccrypto.h b/eccrypto.h
index 1952e081..ae2688bf 100644
--- a/eccrypto.h
+++ b/eccrypto.h
@@ -215,7 +215,7 @@ class DL_PrivateKey_EC : public DL_PrivateKeyImpl<DL_GroupParameters_EC<EC> >
public:
typedef typename EC::Point Element;
- virtual ~DL_PrivateKey_EC() {}
+ virtual ~DL_PrivateKey_EC();
//! \brief Initialize an EC Private Key using {GP,x}
//! \param params group parameters
@@ -258,6 +258,10 @@ public:
void DEREncodePrivateKey(BufferedTransformation &bt) const;
};
+// Out-of-line dtor due to AIX and GCC, http://github.com/weidai11/cryptopp/issues/499
+template<class EC>
+DL_PrivateKey_EC<EC>::~DL_PrivateKey_EC() {}
+
//! \class ECDH
//! \brief Elliptic Curve Diffie-Hellman
//! \tparam EC elliptic curve field