diff options
author | Matej Muzila <mmuzila@redhat.com> | 2018-04-09 13:46:42 +0200 |
---|---|---|
committer | Kevin J. McCarthy <kevin@8t8.us> | 2018-04-15 22:12:05 +0000 |
commit | 13a2f6144c51c0451b20056bf92cbd0b2f338f1e (patch) | |
tree | 2da00af8e06fffc56043b2f9e7ae9520d1eb57e5 /mutt_socket.c | |
parent | a21fb60e1e1dfc2f4919594b74413d0042283436 (diff) |
Add libidn2 support
Diffstat (limited to 'mutt_socket.c')
-rw-r--r-- | mutt_socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mutt_socket.c b/mutt_socket.c index 16e52dce..dc845865 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -499,7 +499,7 @@ int raw_socket_open (CONNECTION* conn) snprintf (port, sizeof (port), "%d", conn->account.port); -# ifdef HAVE_LIBIDN +# if defined(HAVE_LIBIDN) || defined(HAVE_LIBIDN2) if (idna_to_ascii_lz (conn->account.host, &host_idna, 1) != IDNA_SUCCESS) { mutt_error (_("Bad IDN \"%s\"."), conn->account.host); @@ -514,7 +514,7 @@ int raw_socket_open (CONNECTION* conn) rc = getaddrinfo (host_idna, port, &hints, &res); -# ifdef HAVE_LIBIDN +# if defined(HAVE_LIBIDN) || defined(HAVE_LIBIDN2) FREE (&host_idna); # endif @@ -558,7 +558,7 @@ int raw_socket_open (CONNECTION* conn) sin.sin_port = htons (conn->account.port); sin.sin_family = AF_INET; -# ifdef HAVE_LIBIDN +# if defined(HAVE_LIBIDN) || defined(HAVE_LIBIDN2) if (idna_to_ascii_lz (conn->account.host, &host_idna, 1) != IDNA_SUCCESS) { mutt_error (_("Bad IDN \"%s\"."), conn->account.host); @@ -573,7 +573,7 @@ int raw_socket_open (CONNECTION* conn) he = gethostbyname (host_idna); -# ifdef HAVE_LIBIDN +# if defined(HAVE_LIBIDN) || defined(HAVE_LIBIDN2) FREE (&host_idna); # endif |