summaryrefslogtreecommitdiff
path: root/package/fetchmail/patches/patch-socket_c
blob: a4e3f2dbfaf14463008a6a839f4d6c63f7086166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- fetchmail-6.4.23.orig/socket.c	2021-08-28 11:13:58.000000000 +0200
+++ fetchmail-6.4.23/socket.c	2021-11-12 23:58:36.082986247 +0100
@@ -966,17 +966,9 @@ static int OSSL10X_proto_version_logic(i
 		report(stderr, GT_("Your OpenSSL version does not support TLS v1.2.\n"));
 		return -1;
 #endif
-#if defined(TLS1_3_VERSION)
-	} else if (!strcasecmp("tls1.3", *myproto)) {
-		_ctx[sock] = SSL_CTX_new(TLSv1_3_client_method());
-	} else if (!strcasecmp("tls1.3+", *myproto)) {
-		*myproto = NULL;
-		*avoid_ssl_versions |= SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2;
-#else
 	} else if(!strcasecmp("tls1.3",*myproto) || !strcasecmp("tls1.3+", *myproto)) {
 		report(stderr, GT_("Your OpenSSL version does not support TLS v1.3.\n"));
 		return -1;
-#endif
 	} else if (!strcasecmp("ssl23", *myproto)
 	        || 0 == strcasecmp("auto", *myproto))
 	{