load_pubkey_from_engine() should load public key

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'.
This commit is contained in:
Matthijs Mekking
2020-11-25 09:23:57 +01:00
parent 61ba7b9cba
commit 370285a62d

View File

@@ -628,7 +628,7 @@ load_pubkey_from_engine(EC_KEY *eckey, const char *engine, const char *label) {
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));