]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Create PKEY_CTX with the id of the key
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 5 Sep 2018 07:38:53 +0000 (09:38 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 5 Sep 2018 07:38:53 +0000 (09:38 +0200)
pdns/opensslsigners.cc

index 1e405d0800b5fb9421faff1c40662d58e690596e..8ed251761b048869953d90e15f7fca1661457377 100644 (file)
@@ -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");
   }