diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-01-28 22:36:00 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-29 10:18:56 +1100 |
commit | 9ce86c926dfa6e0635161b035e3944e611cbccf0 (patch) | |
tree | d946ba3df439153ece7857d742035a3d6adcbc98 /dns.c | |
parent | 9125525c37bf73ad3ee4025520889d2ce9d10f29 (diff) |
upstream commit
update to new API (key_fingerprint => sshkey_fingerprint)
check sshkey_fingerprint return values; ok markus
Diffstat (limited to 'dns.c')
-rw-r--r-- | dns.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dns.c,v 1.33 2015/01/15 09:40:00 djm Exp $ */ | 1 | /* $OpenBSD: dns.c,v 1.34 2015/01/28 22:36:00 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2003 Wesley Griffin. All rights reserved. | 4 | * Copyright (c) 2003 Wesley Griffin. All rights reserved. |
@@ -294,7 +294,7 @@ verify_host_key_dns(const char *hostname, struct sockaddr *address, | |||
294 | free(dnskey_digest); | 294 | free(dnskey_digest); |
295 | } | 295 | } |
296 | 296 | ||
297 | free(hostkey_digest); /* from key_fingerprint_raw() */ | 297 | free(hostkey_digest); /* from sshkey_fingerprint_raw() */ |
298 | freerrset(fingerprints); | 298 | freerrset(fingerprints); |
299 | 299 | ||
300 | if (*flags & DNS_VERIFY_FOUND) | 300 | if (*flags & DNS_VERIFY_FOUND) |
@@ -337,7 +337,7 @@ export_dns_rr(const char *hostname, struct sshkey *key, FILE *f, int generic) | |||
337 | for (i = 0; i < rdata_digest_len; i++) | 337 | for (i = 0; i < rdata_digest_len; i++) |
338 | fprintf(f, "%02x", rdata_digest[i]); | 338 | fprintf(f, "%02x", rdata_digest[i]); |
339 | fprintf(f, "\n"); | 339 | fprintf(f, "\n"); |
340 | free(rdata_digest); /* from key_fingerprint_raw() */ | 340 | free(rdata_digest); /* from sshkey_fingerprint_raw() */ |
341 | success = 1; | 341 | success = 1; |
342 | } | 342 | } |
343 | } | 343 | } |