DNS: explicit alloc/free of workspace
[exim.git] / src / src / std-crypto.c
index 161052c146d17138ae4ed6694b18ed9c5c50faa2..e4df560064f551c64acce4e2cf222d7a0b19da13 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "exim.h"
 
-#ifndef SUPPORT_TLS
+#ifdef DISABLE_TLS
 static void dummy(int x) { dummy(x-1); }
 #else
 
@@ -959,11 +959,13 @@ struct dh_constant {
   const char *pem;
 };
 
+#define EXIM_DH_PRIME_DEFAULT dh_exim_20160529_3
+
 /* KEEP SORTED ALPHABETICALLY;
  * duplicate PEM are okay, if we want aliases, but names must be alphabetical */
 static struct dh_constant dh_constants[] = {
     /*  label                  pem */
-    { "default",               dh_exim_20160529_3 },
+    { "default",               EXIM_DH_PRIME_DEFAULT },
     { "exim.dev.20160529.1",   dh_exim_20160529_1 },
     { "exim.dev.20160529.2",   dh_exim_20160529_2 },
     { "exim.dev.20160529.3",   dh_exim_20160529_3 },
@@ -993,7 +995,7 @@ static const int dh_constants_count =
 const char *
 std_dh_prime_default(void)
 {
-  return dh_ike_23_pem;
+  return EXIM_DH_PRIME_DEFAULT;
 }
 
 
@@ -1018,5 +1020,5 @@ std_dh_prime_named(const uschar *name)
   return NULL;
 }
 
-#endif /* SUPPORT_TLS */
+#endif /*DISABLE_TLS*/
 /* EOF */