TLS: library version build-time checks for resumption support
[exim.git] / src / src / tls-openssl.c
index e47df7cb29f3f739eac6982fa2b5f408c3a2b23b..824212dbcbdfa87a2af1b6c61e7a2babfbb5b33d 100644 (file)
@@ -108,6 +108,12 @@ change this guard and punt the issue for a while longer. */
 # define DISABLE_OCSP
 #endif
 
+#ifdef EXPERIMENTAL_TLS_RESUME
+# if OPENSSL_VERSION_NUMBER < 0x0101010L
+#  error OpenSSL version too old for session-resumption
+# endif
+#endif
+
 #ifdef EXIM_HAVE_OPENSSL_CHECKHOST
 # include <openssl/x509v3.h>
 #endif