summaryrefslogtreecommitdiff
path: root/fetchmail/disable-sslv3.patch
blob: 2edc41e2be37d72f293be35accf4863387e35833 (plain)
    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)) {

Generated by cgit