]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add isc_tls_valid_sni_hostname()
authorArtem Boldariev <artem@boldariev.com>
Fri, 28 Mar 2025 07:20:16 +0000 (09:20 +0200)
committerArtem Boldariev <artem@boldariev.com>
Mon, 31 Mar 2025 12:06:59 +0000 (15:06 +0300)
commit634625be0751b29074de6aef84fae6afda7bc667
tree6fded69ced3f08b0262bff7592ee869e2e209f22
parentd05f4b4b9b0ac5fea52e7f571858f76bb4df12a1
Add isc_tls_valid_sni_hostname()

Add a function that checks if a 'hostname' is not a valid IPv4 or IPv6
address. Returns 'true' if the hostname is likely a domain name, and
'false' if it represents an IP address.

(cherry picked from commit 1f199ee60654e5cf47821f3b96b980bff34769bc)
lib/isc/include/isc/tls.h
lib/isc/tls.c