diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-03-08 04:10:31 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-08 04:10:31 +0000 |
commit | e2fd3cbe085d9867710ee7b3d487c16c150fa204 (patch) | |
tree | 6c145b6019df3a7c10b005c6a10ace5864047331 /resolv/netdb.h | |
parent | 01859b1c24e97f30325a3ce189739e66811c40a4 (diff) | |
download | glibc-e2fd3cbe085d9867710ee7b3d487c16c150fa204.zip glibc-e2fd3cbe085d9867710ee7b3d487c16c150fa204.tar.gz glibc-e2fd3cbe085d9867710ee7b3d487c16c150fa204.tar.bz2 |
Update.
* config.h.in: Add entry for HAVE_LIBIDN.
* configure.in: If libidn add-on present define HAVE_LIBIDN.
* Versions.def: Add entry for libcidn.
2004-03-07 Simon Josefsson <jas@extundo.com>
* resolv/netdb.h [__USE_GNU]: Add new AI_IDN ai_flags for addrinfo.
[__USE_GNU]: Add new error code EAI_IDN_ENCODE for getaddrinfo.
* sysdeps/posix/getaddrinfo.c: Add prototype for __idna_to_ascii_lz
and define IDNA_SUCCESS.
(gaih_inet): If ai_flags have AI_IDN, invoke __idna_to_ascii_lz.
(getaddrinfo): Fix EAI_BADFLAGS test to include AI_IDN.
All changes only applicable when glibc is compiled with the libidn
add-on.
2004-03-07 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'resolv/netdb.h')
-rw-r--r-- | resolv/netdb.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h index cca9ffc..5aaa387 100644 --- a/resolv/netdb.h +++ b/resolv/netdb.h @@ -1,4 +1,4 @@ - /* Copyright (C) 1996-2002, 2003 Free Software Foundation, Inc. + /* Copyright (C) 1996-2002, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -573,6 +573,11 @@ struct gaicb # define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6 addresses. */ # define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose returned address type.. */ +# ifdef __USE_GNU +# define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded + in the current locale's character set) + before looking it up. */ +# endif /* Error values for `getaddrinfo' function. */ # define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */ @@ -592,6 +597,7 @@ struct gaicb # define EAI_NOTCANCELED -102 /* Request not canceled. */ # define EAI_ALLDONE -103 /* All requests done. */ # define EAI_INTR -104 /* Interrupted by a signal. */ +# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ # endif # define NI_MAXHOST 1025 |