mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-18 02:58:54 -04:00
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:
parent
61ba7b9cba
commit
370285a62d
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue