version 1.4, 2003/05/14 23:29:22 |
version 1.5, 2003/05/15 02:27:15 |
|
|
/* Only accept validated answers */ |
/* Only accept validated answers */ |
if (!fingerprints->rri_flags & RRSET_VALIDATED) { |
if (!fingerprints->rri_flags & RRSET_VALIDATED) { |
error("Ignored unvalidated fingerprint from DNS."); |
error("Ignored unvalidated fingerprint from DNS."); |
|
freerrset(fingerprints); |
return DNS_VERIFY_ERROR; |
return DNS_VERIFY_ERROR; |
} |
} |
#endif |
#endif |
|
|
if (!dns_read_key(&hostkey_algorithm, &hostkey_digest_type, |
if (!dns_read_key(&hostkey_algorithm, &hostkey_digest_type, |
&hostkey_digest, &hostkey_digest_len, hostkey)) { |
&hostkey_digest, &hostkey_digest_len, hostkey)) { |
error("Error calculating host key fingerprint."); |
error("Error calculating host key fingerprint."); |
|
freerrset(fingerprints); |
return DNS_VERIFY_ERROR; |
return DNS_VERIFY_ERROR; |
} |
} |
|
|