gnutls: do not use uclibc's AI_IDN; it doesn't like it
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 18 Sep 2014 19:27:47 +0000 (21:27 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 18 Sep 2014 19:28:29 +0000 (21:28 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
libs/gnutls/patches/001-ai-idn-remove.patch [new file with mode: 0644]

diff --git a/libs/gnutls/patches/001-ai-idn-remove.patch b/libs/gnutls/patches/001-ai-idn-remove.patch
new file mode 100644 (file)
index 0000000..9acf756
--- /dev/null
@@ -0,0 +1,15 @@
+diff --git a/src/socket.c b/src/socket.c
+index 82c6252..e2feda9 100644
+--- a/src/socket.c
++++ b/src/socket.c
+@@ -241,10 +241,6 @@ socket_open(socket_st * hd, const char *hostname, const char *service,
+       /* get server name */
+       memset(&hints, 0, sizeof(hints));
+-#ifdef AI_IDN
+-      hints.ai_flags = AI_IDN|AI_IDN_ALLOW_UNASSIGNED;
+-#endif
+-
+       hints.ai_socktype = udp ? SOCK_DGRAM : SOCK_STREAM;
+       if ((err = getaddrinfo(hostname, service, &hints, &res))) {
+               fprintf(stderr, "Cannot resolve %s:%s: %s\n", hostname,