wok-next view fetchmail/stuff/patches/disable-sslv3.patch @ rev 20877

msmtp: up (1.6.8); fetchmail: patch
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jul 06 14:18:54 2018 +0300 (2018-07-06)
parents
children
line source
1 diff -u -r fetchmail-6.3.26/socket.c fetchmail-6.3.26-nossl3/socket.c
2 --- fetchmail-6.3.26/socket.c 2013-04-23 22:00:45.000000000 +0200
3 +++ fetchmail-6.3.26-nossl3/socket.c 2016-03-03 18:18:46.688881618 +0100
4 @@ -907,14 +907,11 @@
5 _ssl_context[sock] = NULL;
6 if(myproto) {
7 if(!strcasecmp("ssl2",myproto)) {
8 -#if HAVE_DECL_SSLV2_CLIENT_METHOD + 0 > 0
9 - _ctx[sock] = SSL_CTX_new(SSLv2_client_method());
10 -#else
11 report(stderr, GT_("Your operating system does not support SSLv2.\n"));
12 return -1;
13 -#endif
14 } else if(!strcasecmp("ssl3",myproto)) {
15 - _ctx[sock] = SSL_CTX_new(SSLv3_client_method());
16 + report(stderr, GT_("Your operating system does not support SSLv3.\n"));
17 + return -1;
18 } else if(!strcasecmp("tls1",myproto)) {
19 _ctx[sock] = SSL_CTX_new(TLSv1_client_method());
20 } else if (!strcasecmp("ssl23",myproto)) {