Do not claim OCSP support when compiled with too-old GnuTLS version
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 26 Oct 2014 22:57:00 +0000 (22:57 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 26 Oct 2014 22:57:00 +0000 (22:57 +0000)
src/src/exim.c

index 5faa6f9..102d850 100644 (file)
@@ -12,6 +12,13 @@ Also a few functions that don't naturally fit elsewhere. */
 
 #include "exim.h"
 
+#ifdef USE_GNUTLS
+# include <gnutls/gnutls.h>
+# if GNUTLS_VERSION_NUMBER < 0x030103 && !defined(DISABLE_OCSP)
+#  define DISABLE_OCSP
+# endif
+#endif
+
 extern void init_lookup_list(void);