summaryrefslogtreecommitdiff
path: root/lib/str.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-01-24 08:50:54 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-26 15:42:14 +0100
commit816bb0449d5c0938c8be6686030323bcea083055 (patch)
tree68404edf34515fea8c5d2884249267cdcfcd57f2 /lib/str.h
parentfc890c44062e04c1f93ee8e388fe0935abe17812 (diff)
downloadgnutls-816bb0449d5c0938c8be6686030323bcea083055.tar.gz
Exported gnutls_idna_map() and gnutls_idna_reverse_map()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/str.h')
-rw-r--r--lib/str.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/str.h b/lib/str.h
index a294caed8b..d67fec4162 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -48,27 +48,6 @@ int gnutls_utf8_password_normalize(const uint8_t *password, unsigned password_le
int _gnutls_idna_email_map(const char *input, unsigned ilen, gnutls_datum_t *output);
-#if !defined HAVE_LIBIDN2 && !defined HAVE_LIBIDN
-inline static
-int __gnutls_idna_map(const char *input, unsigned ilen, gnutls_datum_t *out, unsigned flags)
-{
- /* no call to gnutls_assert() due to header dependency issues */
- out->data = gnutls_malloc(ilen+1);
- if (out->data == NULL)
- return GNUTLS_E_MEMORY_ERROR;
- out->size = ilen;
- memcpy(out->data, input, ilen);
- out->data[ilen] = 0;
- return 0;
-}
-# define gnutls_idna_map __gnutls_idna_map
-#else
-# define gnutls_idna_map _gnutls_idna_map
-int _gnutls_idna_map(const char * input, unsigned ilen, gnutls_datum_t *out, unsigned flags);
-#endif
-
-int _gnutls_idna_reverse_map(const char * input, unsigned ilen, gnutls_datum_t *out, unsigned flags);
-
inline static unsigned _gnutls_str_is_print(const char *str, unsigned size)
{
unsigned i;