]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/opensslsigners.cc
auth: Move key validity check out of `fromISCMap()`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 3 May 2016 08:39:53 +0000 (10:39 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 3 May 2016 08:41:08 +0000 (10:41 +0200)
commit8ca3ea3384927e434e9b0c69ce25b9a927aa3640
treef7e27c2834e6211759b4a33a7983877509f45818
parent898c9a573997054c6227b6cbe71ab573c2fb3661
auth: Move key validity check out of `fromISCMap()`

It doesn't make a lot of sense to check the key validity at every
call of `fromISCMap()`, and it hurts performance a lot when keys
are not cached.

* Add separate `DNSSECKeeper::checkKeys()` and
`DNSCryptoKeyEngine::checkKeys()` methods
* Key validity is checked on import-zone-key, check-zone and
test-algorithm(s)
pdns/dbdnsseckeeper.cc
pdns/dnssecinfra.cc
pdns/dnssecinfra.hh
pdns/dnsseckeeper.hh
pdns/opensslsigners.cc
pdns/pdnsutil.cc