The 'function load_pubkey_from_engine()' made a call to the libssl
function 'ENGINE_load_private_key'. This is a copy paste error and
should be 'ENGINE_load_public_key'.
(cherry picked from commit
370285a62dd1fb5e29972c4160332c729ba67aeb)
return (DST_R_NOENGINE);
}
- EVP_PKEY *pubkey = ENGINE_load_private_key(ep, label, NULL, NULL);
+ EVP_PKEY *pubkey = ENGINE_load_public_key(ep, label, NULL, NULL);
if (pubkey == NULL) {
return (dst__openssl_toresult2("ENGINE_load_public_key",
ISC_R_NOTFOUND));