]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make opensslecdsa_parse use fromlabel
authorMatthijs Mekking <matthijs@isc.org>
Tue, 5 Jan 2021 10:09:38 +0000 (11:09 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 26 Jan 2021 14:04:59 +0000 (15:04 +0100)
commit4a36b6d918bc5405fdcfc306a4899ac765c14fb0
treecf1b96618eb4a6cc34f6559b6b9c186fe9df7d82
parent97185ecac2577f0efeea7126271cb8ab557069b9
Make opensslecdsa_parse use fromlabel

When 'opensslecdsa_parse()' encounters a label tag in the private key
file, load the private key with 'opensslecdsa_fromlabel()'. Otherwise
load it from the private structure.

This was attempted before with 'load_privkey()' and 'uses_engine()',
but had the same flaw as 'opensslecdsa_fromlabel()' had previously,
that is getting the private and public key separately, juggling with
pointers between EC_KEY and EVP_PKEY, did not create a valid
cryptographic key that could be used for signing.

(cherry picked from commit 57ac70ad4651f9a6ecac57bb4cbd5e57a234954e)
lib/dns/opensslecdsa_link.c