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 5faa6f97f16ae641de2d3b914b773fbdd97bc488..102d8504ca3df52ccf2539b8a03ab28e543d325e 100644 (file)
@@ -12,6 +12,13 @@ Also a few functions that don't naturally fit elsewhere. */
 
 #include "exim.h"
 
 
 #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);
 
 
 extern void init_lookup_list(void);