From b6b3169af636d85ed8e06c4fe98c0973ccd45529 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 5 Sep 2018 09:38:53 +0200 Subject: [PATCH] Create PKEY_CTX with the id of the key --- pdns/opensslsigners.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/opensslsigners.cc b/pdns/opensslsigners.cc index 1e405d0800..8ed251761b 100644 --- a/pdns/opensslsigners.cc +++ b/pdns/opensslsigners.cc @@ -985,7 +985,7 @@ bool OpenSSLEDDSADNSCryptoKeyEngine::checkKey() const void OpenSSLEDDSADNSCryptoKeyEngine::create(unsigned int bits) { - auto pctx = EVP_PKEY_CTX_new(d_edkey, nullptr); + auto pctx = EVP_PKEY_CTX_new_id(d_id, nullptr); if (pctx == nullptr) { throw runtime_error(getName()+" context initialization failed"); } -- 2.47.2