diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-09-17 07:08:14 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-17 07:08:14 -0400 |
commit | 7097546cfcf742cfd7b60af6bbe95173f9238f40 (patch) | |
tree | 3ef2e7d458b0ae01601ca2ec084407373dcbe41b /eccrypto.h | |
parent | 3e237540fe63183d0e85b7bc160c7e148c5dc6ff (diff) | |
download | cryptopp-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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
|