diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-04-04 20:13:11 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-05-01 12:58:23 +0200 |
commit | abe6a12b9766219163f99d7807a0b07fbe5f590c (patch) | |
tree | d6ae3a7993290b2fa9d688cdf5be1f738be2b612 /tests/crq_apis.c | |
parent | 8f981f0373fd3484659a5b0452306d01e13fc26d (diff) | |
download | gnutls-abe6a12b9766219163f99d7807a0b07fbe5f590c.tar.gz |
Removed support for libidn1
Currently we support both IDNA2003 and IDNA2008. However, IDNA2003
is already obsolete by registrars and NICs, thus there is no reason
to continue supporting it. We switch to IDNA2008 exclusively using libidn2.
Resolves #194
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests/crq_apis.c')
-rw-r--r-- | tests/crq_apis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/crq_apis.c b/tests/crq_apis.c index a4ff7c3816..fdc7ece1c2 100644 --- a/tests/crq_apis.c +++ b/tests/crq_apis.c @@ -184,7 +184,7 @@ static gnutls_x509_crq_t generate_crq(void) ret = gnutls_x509_crq_set_subject_alt_name(crq, GNUTLS_SAN_DNSNAME, "νίκο.com", strlen("νίκο.com"), GNUTLS_FSAN_APPEND); -#if defined(HAVE_LIBIDN) || defined(HAVE_LIBIDN2) +#if defined(HAVE_LIBIDN2) if (ret != 0) fail("gnutls_x509_crt_set_subject_alt_name: %s\n", gnutls_strerror(ret)); #else @@ -453,7 +453,7 @@ void doit(void) assert(gnutls_x509_crq_export2(crq, GNUTLS_X509_FMT_PEM, &out) >= 0); -#if defined(HAVE_LIBIDN) || defined(HAVE_LIBIDN2) +#if defined(HAVE_LIBIDN2) assert(out.size == saved_crq.size); assert(memcmp(out.data, saved_crq.data, out.size)==0); #endif |