mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
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.
This commit is contained in:
parent
2c0cd8f81f
commit
43b7dfd1b6
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[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.
|
||||
|
||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
|
8
include/idna.h
Normal file
8
include/idna.h
Normal file
@ -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
|
@ -73,9 +73,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <scratch_buffer.h>
|
||||
|
||||
#ifdef HAVE_LIBIDN
|
||||
# include <libidn/idna.h>
|
||||
extern int __idna_to_unicode_lzlz (const char *input, char **output,
|
||||
int flags);
|
||||
# include <idna.h>
|
||||
#endif
|
||||
|
||||
#ifndef min
|
||||
|
@ -86,10 +86,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <inet/net-internal.h>
|
||||
|
||||
#ifdef HAVE_LIBIDN
|
||||
extern int __idna_to_ascii_lz (const char *input, char **output, int flags);
|
||||
extern int __idna_to_unicode_lzlz (const char *input, char **output,
|
||||
int flags);
|
||||
# include <libidn/idna.h>
|
||||
# include <idna.h>
|
||||
#endif
|
||||
|
||||
struct gaih_service
|
||||
|
Loading…
Reference in New Issue
Block a user