From: Pieter Lexis Date: Wed, 5 Sep 2018 07:38:53 +0000 (+0200) Subject: Create PKEY_CTX with the id of the key X-Git-Tag: dnsdist-1.3.3~70^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b3169af636d85ed8e06c4fe98c0973ccd45529;p=thirdparty%2Fpdns.git Create PKEY_CTX with the id of the key --- 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"); }