summaryrefslogtreecommitdiff
path: root/dh.h
diff options
context:
space:
mode:
Diffstat (limited to 'dh.h')
-rw-r--r--dh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh.h b/dh.h
index 31fa7985..641d508b 100644
--- a/dh.h
+++ b/dh.h
@@ -78,7 +78,7 @@ public:
private:
const DL_KeyAgreementAlgorithm<Element> & GetKeyAgreementAlgorithm() const
- {static KeyAgreementAlgorithm a; return a;}
+ {return Singleton<KeyAgreementAlgorithm>().Ref();}
DL_GroupParameters<Element> & AccessAbstractGroupParameters()
{return m_groupParameters;}