changeset 1adbc20ab5a1 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=1adbc20ab5a1 description: ability to configure cipher list
diffstat:
src/common/config.py | 1 + src/common/connection.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 202898e4ed10 -r 1adbc20ab5a1 src/common/config.py --- a/src/common/config.py Sat Nov 02 21:22:41 2013 +0100 +++ b/src/common/config.py Sun Nov 03 17:57:12 2013 +0100 @@ -349,6 +349,7 @@ 'enable_esessions': [opt_bool, True, _('Enable ESessions encryption for this account.')], 'autonegotiate_esessions': [opt_bool, True, _('Should Gajim automatically start an encrypted session when possible?')], 'connection_types': [ opt_str, 'tls ssl plain', _('Ordered list (space separated) of connection type to try. Can contain tls, ssl or plain')], + 'cipher_list': [ opt_str, 'HIGH:!aNULL:!eNULL:RC4-SHA', '' ], 'action_when_plaintext_connection': [ opt_str, 'warn', _('Show a warning dialog before sending password on an plaintext connection. Can be 'warn', 'connect', 'disconnect'') ], 'warn_when_insecure_ssl_connection': [ opt_bool, True, _('Show a warning dialog before using standard SSL library.') ], 'warn_when_insecure_password': [ opt_bool, True, _('Show a warning dialog before sending PLAIN password over a plain connection.') ], diff -r 202898e4ed10 -r 1adbc20ab5a1 src/common/connection.py --- a/src/common/connection.py Sat Nov 02 21:22:41 2013 +0100 +++ b/src/common/connection.py Sun Nov 03 17:57:12 2013 +0100 @@ -1236,7 +1236,9 @@ if not os.path.exists(cacerts): cacerts = '' mycerts = common.gajim.MY_CACERTS - secure_tuple = (self._current_type, cacerts, mycerts) + cipher_list = gajim.config.get_per('accounts', self.name, + 'cipher_list') + secure_tuple = (self._current_type, cacerts, mycerts, cipher_list)
con = nbxmpp.NonBlockingClient( domain=self._hostname,