If TLS auth name given, lookup is to go over TLS.

This commit is contained in:
Jim Hague 2018-01-15 11:00:12 +00:00
parent c0d7d2c279
commit 22996bf07d
1 changed files with 6 additions and 0 deletions

View File

@ -889,6 +889,12 @@ int main(int ATTR_UNUSED(ac), char *av[])
ret);
exit(EXIT_UNKNOWN);
}
/* If the resolver info include TLS auth name, use TLS. */
getdns_bindata *tls_auth_name;
if (getdns_dict_get_bindata(resolver, "tls_auth_name", &tls_auth_name) == GETDNS_RETURN_GOOD)
use_tls = true;
if ((ret = getdns_dict_get_bindata(resolver, "address_data", &address)) != GETDNS_RETURN_GOOD) {
fprintf(test_info.errout,
"\"%s\" did not translate to an IP dict: %s (%d)\n",