summaryrefslogtreecommitdiff
path: root/eccrypto.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-17 07:08:14 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-17 07:08:14 -0400
commit7097546cfcf742cfd7b60af6bbe95173f9238f40 (patch)
tree3ef2e7d458b0ae01601ca2ec084407373dcbe41b /eccrypto.h
parent3e237540fe63183d0e85b7bc160c7e148c5dc6ff (diff)
downloadcryptopp-git-7097546cfcf742cfd7b60af6bbe95173f9238f40.tar.gz
Fix "X causes a section type conflict with Y" for GCC on AIX (GH #499)
These surfaced during testing with cryptest.sh
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