aboutsummaryrefslogtreecommitdiff
path: root/include/idna.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:33:08 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:33:22 -0700
commit43b7dfd1b6cfd1b603e96270dc6a0b1758f81a13 (patch)
treee40743a1f237bf407c3daa742b2ad9b6254cb0f1 /include/idna.h
parent2c0cd8f81fee4d9dc8e34254f4f6ed56d5bb6f59 (diff)
downloadglibc-43b7dfd1b6cfd1b603e96270dc6a0b1758f81a13.zip
glibc-43b7dfd1b6cfd1b603e96270dc6a0b1758f81a13.tar.gz
glibc-43b7dfd1b6cfd1b603e96270dc6a0b1758f81a13.tar.bz2
Hide internal idna functions [BZ #18822]
Hide internal idna functions to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/idna.h: New file. * inet/getnameinfo.c: Include <idna.h> instead of <libidn/idna.h>. (__idna_to_unicode_lzlz): Removed. * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of <libidn/idna.h>. (__idna_to_ascii_lz): Removed. (__idna_to_unicode_lzlz): Likewise.
Diffstat (limited to 'include/idna.h')
-rw-r--r--include/idna.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/idna.h b/include/idna.h
new file mode 100644
index 0000000..dcb271d
--- /dev/null
+++ b/include/idna.h
@@ -0,0 +1,8 @@
+#ifndef _IDNA_H
+#include <libidn/idna.h>
+
+extern __typeof (idna_to_ascii_lz) __idna_to_ascii_lz attribute_hidden;
+extern __typeof (idna_to_unicode_lzlz ) __idna_to_unicode_lzlz
+ attribute_hidden;
+
+#endif