about summary refs log tree commit diff
path: root/include/resolv.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-30 10:02:49 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-09-13 12:56:24 +0200
commit3c9b4004e2dccc9ca2ace078a0106f9d682fd1a0 (patch)
tree4bf4a42b512ddf6fec30697d9a8e9d4c4458c5a6 /include/resolv.h
parentbffc33e90ed57a4786c676dda92d935e3613e031 (diff)
downloadglibc-3c9b4004e2dccc9ca2ace078a0106f9d682fd1a0.tar.gz
glibc-3c9b4004e2dccc9ca2ace078a0106f9d682fd1a0.tar.xz
glibc-3c9b4004e2dccc9ca2ace078a0106f9d682fd1a0.zip
resolv: Add internal __res_binary_hnok function
During package parsing, only the binary representation is available,
and it is convenient to check that directly for conformance with host
name requirements.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit c79327bf00a4be6d60259227acc78ef80ead3622)
Diffstat (limited to 'include/resolv.h')
-rw-r--r--include/resolv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 3590b6f496..4dbbac3800 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -70,5 +70,8 @@ libc_hidden_proto (__libc_res_nameinquery)
 extern __typeof (__res_queriesmatch) __libc_res_queriesmatch;
 libc_hidden_proto (__libc_res_queriesmatch)
 
+/* Variant of res_hnok which operates on binary (but uncompressed) names.  */
+bool __res_binary_hnok (const unsigned char *dn) attribute_hidden;
+
 # endif /* _RESOLV_H_ && !_ISOMAC */
 #endif