changeset ee428886f22c in /home/hg/repos/gajim-plugins
author: lovetox forenjunkie@chelo.at branches: gtk3 details:gajim-plugins?cmd=changeset;node=ee428886f22c description: Use cert validation only on Windows for now
diffstat:
plugin_installer/plugin_installer.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 4a567e86ac4b -r ee428886f22c plugin_installer/plugin_installer.py --- a/plugin_installer/plugin_installer.py Mon Sep 26 11:36:26 2016 +0200 +++ b/plugin_installer/plugin_installer.py Tue Sep 27 00:34:03 2016 +0200 @@ -114,15 +114,14 @@ '\n%s') % plugins_str, on_response_yes=open_update)
def ftp_connect(self): - if sys.version_info >= (3, 4): + if os.name == 'nt': ctx = ssl.create_default_context() con = ftplib.FTP_TLS(self.config['ftp_server'], context=ctx) - log.debug('Plugin Server Cert verified') else: con = ftplib.FTP_TLS(self.config['ftp_server']) + con.login() con.prot_p() - return con
@log_calls('PluginInstallerPlugin')