From 0a505316f7d7cf7c80bb45a3fc760e8d1c2e2516 Mon Sep 17 00:00:00 2001 From: nih0 Date: Fri, 27 Mar 2015 23:02:43 +0100 Subject: [PATCH] Replaced SSLv3 with TLSv1 --- http_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_remote.py b/http_remote.py index cfaceef..1b943fe 100644 --- a/http_remote.py +++ b/http_remote.py @@ -14,7 +14,7 @@ # I had some troubles with the version of Spotify's SSL cert and Python 2.7 on Mac. # Did this monkey dirty patch to fix it. Your milage may vary. def new_wrap_socket(*args, **kwargs): - kwargs['ssl_version'] = ssl.PROTOCOL_SSLv3 + kwargs['ssl_version'] = ssl.PROTOCOL_TLSv1 return orig_wrap_socket(*args, **kwargs) orig_wrap_socket, ssl.wrap_socket = ssl.wrap_socket, new_wrap_socket