CR,IE: TLSA validator IPv4-only
Hi,
I'm testing TLSA validator plugin for Chrome. I found out that it cannot validate TLSA records for IPv6-only host. Looking at source code of dane-plug.c, I see some hardcoded IPv4 idioms:
port = atoi(portnum);
if ( (host = gethostbyname(hostname)) == NULL ) {
printf_debug(DEBUG_PREFIX_CER,
"Error: Cannot resolve hostname %s.\n", hostname);
abort();
}
Am I missing something or is it really that bad? :)
-> getaddrinfo(); fix this problem.