cmake: Require GnuTLS >= 3.7.0
@@ -68,7 +68,7 @@ endforeach()
if(ENABLE_GNUTLS)
- find_package(GnuTLS 3.6.12)
+ find_package(GnuTLS 3.7.0)
endif()
if(ENABLE_OPENSSL)
find_package(OpenSSL 1.1.1)
@@ -130,19 +130,8 @@ set(HAVE_LIBEV ${LIBEV_FOUND})
# libnghttp3 (for examples)
set(HAVE_LIBNGHTTP3 ${LIBNGHTTP3_FOUND})
-# GnuTLS (required for external https://github.com/ueno/ngtcp2-gnutls-examples)
+# GnuTLS (required for libngtcp2_crypto_gnutls)
if(ENABLE_GNUTLS AND GNUTLS_FOUND)
- # Until GnuTLS gains mainline support for QUIC, check for a patched version.
- cmake_push_check_state()
- set(CMAKE_REQUIRED_INCLUDES "${GNUTLS_INCLUDE_DIR}")
- set(CMAKE_REQUIRED_LIBRARIES "${GNUTLS_LIBRARIES}")
- check_symbol_exists(gnutls_handshake_write "gnutls/gnutls.h" HAVE_GNUTLS_HANDSHAKE_WRITE)
- if(NOT HAVE_GNUTLS_HANDSHAKE_WRITE)
- message(WARNING "Disabling GnuTLS due to lack of QUIC support in ${GNUTLS_LIBRARIES}")
- endif()
- cmake_pop_check_state()
-endif()
-if(ENABLE_GNUTLS AND HAVE_GNUTLS_HANDSHAKE_WRITE)
set(GNUTLS_INCLUDE_DIRS ${GNUTLS_INCLUDE_DIR})
set(HAVE_GNUTLS 1)
set(HAVE_CRYPTO 1)
