[exim-cvs] Add GnuTLS version check

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Exim Git Commits Mailing List
Fecha:  
A: exim-cvs
Asunto: [exim-cvs] Add GnuTLS version check
Gitweb: http://git.exim.org/exim.git/commitdiff/7e07527a6a3e003d70029baf78977219a3369507
Commit:     7e07527a6a3e003d70029baf78977219a3369507
Parent:     f2de3a3339ee08778dffb98057f1c19bdcf86374
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri May 23 18:32:48 2014 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri May 23 18:32:48 2014 +0100


    Add GnuTLS version check
---
 src/src/tls-gnu.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index e85095d..5bdb21e 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 <gnutls/pkcs11.h>
#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 <gnutls/ocsp.h>
#endif