From 7e07527a6a3e003d70029baf78977219a3369507 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 23 May 2014 18:32:48 +0100 Subject: [PATCH] Add GnuTLS version check --- src/src/tls-gnu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c index e85095d65..5bdb21e6e 100644 --- a/src/src/tls-gnu.c +++ b/src/src/tls-gnu.c @@ -43,6 +43,11 @@ require current GnuTLS, then we'll drop support for the ancient libraries). #if GNUTLS_VERSION_NUMBER >= 0x020c00 # include #endif +#if GNUTLS_VERSION_NUMBER < 0x030103 && !defined(DISABLE_OCSP) +# warning "GnuTLS library version too old; define DISABLE_OCSP in Makefile" +# define DISABLE_OCSP +#endif + #ifndef DISABLE_OCSP # include #endif -- 2.39.5