summaryrefslogtreecommitdiff
path: root/gfpcrypt.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-14 17:45:55 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-14 17:45:55 -0400
commit51752cb91aa6195b18d16de9681b3d3eeab4686e (patch)
treedf683505c01d571b3ae04f3ecc22ce4dfedebe0b /gfpcrypt.h
parent58890ff053964fb0459c168e21c5ab3d3cee838f (diff)
downloadcryptopp-git-51752cb91aa6195b18d16de9681b3d3eeab4686e.tar.gz
Fix "X causes a section type conflict with Y" for GCC on AIX (GH #499)
We have no idea what caused the issue or why it fixed it
Diffstat (limited to 'gfpcrypt.h')
-rw-r--r--gfpcrypt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gfpcrypt.h b/gfpcrypt.h
index ae05b482..c3260ca8 100644
--- a/gfpcrypt.h
+++ b/gfpcrypt.h
@@ -516,7 +516,7 @@ template <class GP>
class DL_PrivateKey_GFP : public DL_PrivateKeyImpl<GP>
{
public:
- virtual ~DL_PrivateKey_GFP() {}
+ virtual ~DL_PrivateKey_GFP();
//! \brief Create a private key
//! \param rng a RandomNumberGenerator derived class
@@ -570,6 +570,10 @@ public:
{this->AccessGroupParameters().Initialize(p, q, g); this->SetPrivateExponent(x);}
};
+// Out-of-line dtor due to AIX and GCC, http://github.com/weidai11/cryptopp/issues/499
+template <class GP>
+DL_PrivateKey_GFP<GP>::~DL_PrivateKey_GFP() {}
+
//! \class DL_SignatureKeys_GFP
//! \brief Discrete Log (DL) signing/verification keys in GF(p) groups
struct DL_SignatureKeys_GFP