summaryrefslogtreecommitdiffstats
path: root/debian/patches/tls_version.diff
blob: f028d24f4fe74ddd5c5867308d56d0de1eb898c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: postfix/src/tls/tls_client.c
===================================================================
--- postfix.orig/src/tls/tls_client.c
+++ postfix/src/tls/tls_client.c
@@ -414,6 +414,9 @@ TLS_APPL_STATE *tls_client_init(const TL
     SSL_CTX_set_min_proto_version(client_ctx, 0);
 #endif
 
+    /* Enable all supported protocols */
+    SSL_CTX_set_min_proto_version(client_ctx, 0);
+
     /*
      * Set the call-back routine for verbose logging.
      */
Index: postfix/src/tls/tls_server.c
===================================================================
--- postfix.orig/src/tls/tls_server.c
+++ postfix/src/tls/tls_server.c
@@ -539,6 +539,9 @@ TLS_APPL_STATE *tls_server_init(const TL
     if (protomask != 0)
 	SSL_CTX_set_options(server_ctx, TLS_SSL_OP_PROTOMASK(protomask));
 
+    /* Enable all supported protocols */
+    SSL_CTX_set_min_proto_version(server_ctx, 0);
+
     /*
      * Some sites may want to give the client less rope. On the other hand,
      * this could trigger inter-operability issues, the client should not