This is additional hardening. There is no known use-case for KEY RRs
from DNS cache and it potentially allows attackers to put weird keys
into cache.
0, false, &keyset, NULL);
if (result != ISC_R_SUCCESS) {
- /* XXXBEW Should possibly create a fetch here */
result = DNS_R_KEYUNAUTHORIZED;
goto freesig;
- } else if (keyset.trust < dns_trust_secure) {
- /* XXXBEW Should call a validator here */
+ } else if (keyset.trust < dns_trust_ultimate) {
result = DNS_R_KEYUNAUTHORIZED;
goto freesig;
}