TLS: Session resumption, under the EXPERIMENTAL_TLS_RESUME build option.
[exim.git] / src / src / tls.c
index f79bc3193e1f30f785cecd0b89a2d9b28fd40c15..7b8d7a2a3aae1504bb19942280ce544aad198250 100644 (file)
@@ -20,8 +20,10 @@ functions from the OpenSSL or GNU TLS libraries. */
 #include "transports/smtp.h"
 
 #if defined(MACRO_PREDEF) && defined(SUPPORT_TLS)
-# ifndef USE_GNUTLS
-#  include "macro_predef.h"
+# include "macro_predef.h"
+# ifdef USE_GNUTLS
+#  include "tls-gnu.c"
+# else
 #  include "tls-openssl.c"
 # endif
 #endif
@@ -244,8 +246,7 @@ inplace.
 static void
 dn_to_list(uschar * dn)
 {
-uschar * cp;
-for (cp = dn; *cp; cp++)
+for (uschar * cp = dn; *cp; cp++)
   if (cp[0] == '\\' && cp[1] == ',')
     *cp++ = ',';
 }