gajim.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2026
October
September
August
July
June
May
April
March
February
January
2025
December
November
October
September
August
July
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
List overview
Download
Commits
----- 2026 -----
October 2026
September 2026
August 2026
July 2026
June 2026
May 2026
April 2026
March 2026
February 2026
January 2026
----- 2025 -----
December 2025
November 2025
October 2025
September 2025
August 2025
July 2025
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
commits@gajim.org
17632 discussions
Start a n
N
ew thread
gajim: fix banner context menu
by Denis Fomin
06 Jan '13
06 Jan '13
changeset 77bddf457c8e in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=77bddf457c8e
description: fix banner context menu diffstat: src/message_window.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (14 lines): diff -r 7c041f024c86 -r 77bddf457c8e src/message_window.py --- a/src/message_window.py Sun Jan 06 22:07:16 2013 +0400 +++ b/src/message_window.py Mon Jan 07 00:20:18 2013 +0400 @@ -789,8 +789,9 @@ def popup_menu(self, event): menu = self.get_active_control().prepare_context_menu() # show the menu + menu.attach_to_widget(gajim.interface.roster.window, None) + menu.show_all() menu.popup(None, None, None, None, event.button, event.time) - menu.show_all() def _on_notebook_switch_page(self, notebook, page, page_num): old_no = notebook.get_current_page()
1
0
0
0
gajim: fix gajim version
by Denis Fomin
06 Jan '13
06 Jan '13
changeset 7c041f024c86 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=7c041f024c86
description: fix gajim version diffstat: src/common/defs.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 5bbc88f23675 -r 7c041f024c86 src/common/defs.py --- a/src/common/defs.py Sun Jan 06 18:50:10 2013 +0400 +++ b/src/common/defs.py Sun Jan 06 22:07:16 2013 +0400 @@ -33,7 +33,7 @@ node = subprocess.Popen('hg tip --template "{node|short}"', shell=True, stdout=subprocess.PIPE).communicate()[0] if node: - version += '-' + node + version += '-' + node.decode('utf-8') except Exception: pass
1
0
0
0
gajim: fix submenu in roster and in statusicon
by Denis Fomin
06 Jan '13
06 Jan '13
changeset 5bbc88f23675 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=5bbc88f23675
description: fix submenu in roster and in statusicon diffstat: data/gui/systray_context_menu.ui | 91 +++++++++++++++++++++++++-------------- src/roster_window.py | 59 +++++++++++++++---------- src/statusicon.py | 10 ++-- 3 files changed, 99 insertions(+), 61 deletions(-) diffs (truncated from 458 to 300 lines): diff -r 8752749e6b2f -r 5bbc88f23675 data/gui/systray_context_menu.ui --- a/data/gui/systray_context_menu.ui Sun Jan 06 15:10:35 2013 +0100 +++ b/data/gui/systray_context_menu.ui Sun Jan 06 18:50:10 2013 +0400 @@ -1,12 +1,45 @@ -<?xml version="1.0"?> +<?xml version="1.0" encoding="UTF-8"?> <interface> - <requires lib="gtk+" version="2.16"/> - <!-- interface-naming-policy toplevel-contextual --> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkAccelGroup" id="accelgroup1"/> + <object class="GtkImage" id="image1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="stock">gtk-network</property> + <property name="icon-size">1</property> + </object> + <object class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="stock">gtk-jump-to</property> + <property name="icon-size">1</property> + </object> + <object class="GtkImage" id="image3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="stock">gtk-connect</property> + <property name="icon-size">1</property> + </object> + <object class="GtkImage" id="image4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="stock">gtk-new</property> + <property name="icon-size">1</property> + </object> + <object class="GtkImage" id="image5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="stock">gtk-home</property> + <property name="icon-size">1</property> + </object> <object class="GtkMenu" id="systray_context_menu"> + <property name="can_focus">False</property> <child> <object class="GtkImageMenuItem" id="status_menu"> <property name="label" translatable="yes">Sta_tus</property> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="use_underline">True</property> <property name="image">image1</property> <property name="use_stock">False</property> @@ -16,7 +49,9 @@ <child> <object class="GtkImageMenuItem" id="chat_with_menuitem"> <property name="label" translatable="yes">_Start Chat</property> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="use_underline">True</property> <property name="image">image2</property> <property name="use_stock">False</property> @@ -26,7 +61,9 @@ <child> <object class="GtkImageMenuItem" id="join_gc_menuitem"> <property name="label" translatable="yes">_Group Chat</property> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="use_underline">True</property> <property name="image">image3</property> <property name="use_stock">False</property> @@ -36,7 +73,9 @@ <child> <object class="GtkImageMenuItem" id="single_message_menuitem"> <property name="label" translatable="yes">Send Single _Message</property> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="use_underline">True</property> <property name="image">image4</property> <property name="use_stock">False</property> @@ -46,27 +85,34 @@ <child> <object class="GtkSeparatorMenuItem" id="separator12"> <property name="visible">True</property> + <property name="can_focus">False</property> </object> </child> <child> <object class="GtkMenuItem" id="show_all_events_menuitem"> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="label" translatable="yes">Show All Pending _Events</property> <property name="use_underline">True</property> - <signal name="activate" handler="on_show_all_events_menuitem_activate"/> + <signal name="activate" handler="on_show_all_events_menuitem_activate" swapped="no"/> </object> </child> <child> <object class="GtkCheckMenuItem" id="sounds_mute_menuitem"> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="label" translatable="yes">Mute Sounds</property> <property name="use_underline">True</property> - <signal name="activate" handler="on_sounds_mute_menuitem_activate"/> + <signal name="activate" handler="on_sounds_mute_menuitem_activate" swapped="no"/> </object> </child> <child> <object class="GtkImageMenuItem" id="show_roster_menuitem"> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="use_underline">True</property> <property name="image">image5</property> <property name="use_stock">False</property> @@ -76,53 +122,32 @@ <child> <object class="GtkImageMenuItem" id="preferences_menuitem"> <property name="label">gtk-preferences</property> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="use_underline">True</property> <property name="use_stock">True</property> <property name="accel_group">accelgroup1</property> - <signal name="activate" handler="on_preferences_menuitem_activate"/> + <signal name="activate" handler="on_preferences_menuitem_activate" swapped="no"/> </object> </child> <child> <object class="GtkSeparatorMenuItem" id="separator"> <property name="visible">True</property> + <property name="can_focus">False</property> </object> </child> <child> <object class="GtkImageMenuItem" id="quit_menuitem"> <property name="label">gtk-quit</property> + <property name="use_action_appearance">False</property> <property name="visible">True</property> + <property name="can_focus">False</property> <property name="use_underline">True</property> <property name="use_stock">True</property> <property name="accel_group">accelgroup1</property> - <signal name="activate" handler="on_quit_menuitem_activate"/> + <signal name="activate" handler="on_quit_menuitem_activate" swapped="no"/> </object> </child> </object> - <object class="GtkAccelGroup" id="accelgroup1"/> - <object class="GtkImage" id="image1"> - <property name="visible">True</property> - <property name="stock">gtk-network</property> - <property name="icon-size">1</property> - </object> - <object class="GtkImage" id="image2"> - <property name="visible">True</property> - <property name="stock">gtk-jump-to</property> - <property name="icon-size">1</property> - </object> - <object class="GtkImage" id="image3"> - <property name="visible">True</property> - <property name="stock">gtk-connect</property> - <property name="icon-size">1</property> - </object> - <object class="GtkImage" id="image4"> - <property name="visible">True</property> - <property name="stock">gtk-new</property> - <property name="icon-size">1</property> - </object> - <object class="GtkImage" id="image5"> - <property name="visible">True</property> - <property name="stock">gtk-home</property> - <property name="icon-size">1</property> - </object> </interface> diff -r 8752749e6b2f -r 5bbc88f23675 src/roster_window.py --- a/src/roster_window.py Sun Jan 06 15:10:35 2013 +0100 +++ b/src/roster_window.py Sun Jan 06 18:50:10 2013 +0400 @@ -293,8 +293,8 @@ # Draw all known groups for group in gajim.groups[account]: - self.draw_group(group, account) - self.draw_account(account) + self._really_draw_group(group, account) + self._really_draw_account(account) self.starting = False @@ -897,7 +897,7 @@ # update all contacts in the given group if self.regroup: - accounts = gajim.connections.keys() + accounts = list(gajim.connections.keys()) else: accounts = [account, ] @@ -1122,7 +1122,7 @@ self.model[child_iter][C_NAME] = text def _really_draw_groups(self): - for ag in self.groups_to_draw.values(): + for ag in list(self.groups_to_draw.values()): acct = ag['account'] grp = ag['group'] self._really_draw_group(grp, acct) @@ -1135,7 +1135,7 @@ return self.groups_to_draw[ag] = {'group': group, 'account': account} if len(self.groups_to_draw) == 1: - GObject.timeout_add(200, self._really_draw_groups) + GObject.idle_add(self._really_draw_groups) def draw_parent_contact(self, jid, account): child_iters = self._get_contact_iter(jid, account, model=self.model) @@ -1150,7 +1150,13 @@ self.draw_contact(parent_jid, parent_account) return False - def draw_contact(self, jid, account, selected=False, focus=False, contact_instances=None, contact=None): + def draw_contact(self, jid, account, selected=False, focus=False, + contact_instances=None, contact=None): + GObject.idle_add(self._really_draw_contact, jid, account, selected, + focus, contact_instances, contact) + + def _really_draw_contact(self, jid, account, selected=False, focus=False, + contact_instances=None, contact=None): """ Draw the correct state image, name BUT not avatar """ @@ -1329,6 +1335,10 @@ self.draw_pep(jid, account, pep_type, contact=contact) def draw_pep(self, jid, account, pep_type, contact=None): + GObject.idle_add(self._really_draw_pep, jid, account, pep_type, + contact) + + def _really_draw_pep(self, jid, account, pep_type, contact=None): if pep_type not in self._pep_type_to_model_column: return if not self._is_pep_shown_in_roster(pep_type): @@ -1348,6 +1358,9 @@ self.model[child_iter][model_column] = pixbuf def draw_avatar(self, jid, account): + GObject.idle_add(self._really_draw_avatar, jid, account) + + def _really_draw_avatar(self, jid, account): iters = self._get_contact_iter(jid, account, model=self.model) if not iters or not gajim.config.get('show_avatars_in_roster'): return @@ -1871,7 +1884,7 @@ 'groups': ['self_contact'], 'subscription': 'both', 'ask': 'none'} # .keys() is needed - for jid in array.keys(): + for jid in list(array.keys()): # Remove the contact in roster. It might has changed self.remove_contact(jid, account, force=True) # Remove old Contact instances @@ -1929,7 +1942,7 @@ chat_control.contact = contact1 def connected_rooms(self, account): - if account in gajim.gc_connected[account].values(): + if account in list(gajim.gc_connected[account].values()): return True return False @@ -1959,7 +1972,7 @@ self.draw_contact(jid, account) # Remove contacts in roster if removal was requested key = (jid, account) - if key in self.contacts_to_be_removed.keys(): + if key in list(self.contacts_to_be_removed.keys()): backend = self.contacts_to_be_removed[key]['backend'] del self.contacts_to_be_removed[key] # Remove contact will delay removal if there are more events @@ -2486,7 +2499,7 @@ Terminate all sessions and send offline to all connected account. We do NOT really quit gajim here """ - accounts = gajim.connections.keys() + accounts = list(gajim.connections.keys()) get_msg = False for acct in accounts: if gajim.connections[acct].connected: @@ -3569,7 +3582,7 @@ if modifier & Gdk.ModifierType.CONTROL_MASK: if keyval == Gdk.KEY_s: # CTRL + s model = self.status_combobox.get_model() - accounts = gajim.connections.keys() + accounts = list(gajim.connections.keys()) status = model[self.previous_status_combobox_active][2].decode(
1
0
0
0
gajim: fix registering new account
by Yann Leboulanger
06 Jan '13
06 Jan '13
changeset df25d88761a8 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=df25d88761a8
description: fix registering new account diffstat: src/common/connection_handlers_events.py | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diffs (29 lines): diff -r 7ac7e47a48d4 -r df25d88761a8 src/common/connection_handlers_events.py --- a/src/common/connection_handlers_events.py Sun Jan 06 15:41:26 2013 +0400 +++ b/src/common/connection_handlers_events.py Sun Jan 06 15:11:34 2013 +0100 @@ -1562,17 +1562,18 @@ try: self.errnum = self.conn.connection.Connection.ssl_errnum except AttributeError: - self.errnum = -1 # we don't have an errnum + self.errnum = [] # we don't have an errnum self.ssl_msg = '' - if self.errnum > 0: - from common.connection import ssl_error - self.ssl_msg = ssl_error.get(self.errnum, _( - 'Unknown SSL error: %d') % self.errnum) + for er in self.errnum: + if er > 0: + from common.connection import ssl_error + self.ssl_msg = ssl_error.get(er, _('Unknown SSL error: %d') % \ + er) self.ssl_cert = '' - if hasattr(self.conn.connection.Connection, 'ssl_cert_pem'): + if len(self.conn.connection.Connection.ssl_cert_pem): self.ssl_cert = self.conn.connection.Connection.ssl_cert_pem self.ssl_fingerprint = '' - if hasattr(self.conn.connection.Connection, 'ssl_fingerprint_sha1'): + if len(self.conn.connection.Connection.ssl_fingerprint_sha1): self.ssl_fingerprint = \ self.conn.connection.Connection.ssl_fingerprint_sha1 return True
1
0
0
0
gajim: fix encoding problems
by Yann Leboulanger
06 Jan '13
06 Jan '13
changeset 8752749e6b2f in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=8752749e6b2f
description: fix encoding problems diffstat: src/config.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diffs (13 lines): diff -r 2688b908138c -r 8752749e6b2f src/config.py --- a/src/config.py Sun Jan 06 13:47:23 2013 +0100 +++ b/src/config.py Sun Jan 06 15:10:35 2013 +0100 @@ -2218,8 +2218,7 @@ def on_password_entry1_changed(self, widget): if self.ignore_events: return - passwords.save_password(self.current_account, widget.get_text().decode( - 'utf-8')) + passwords.save_password(self.current_account, widget.get_text()) def on_save_password_checkbutton1_toggled(self, widget): if self.ignore_events:
1
0
0
0
python-nbxmpp: fix encoding problems with DIGEST-MD5 authentication
by Yann Leboulanger
06 Jan '13
06 Jan '13
changeset 4f57dc985c04 in /home/hg/repos/python-nbxmpp
details:http://hg.gajim.org/python-nbxmpp?cmd=changeset;node=4f57dc985c04
description: fix encoding problems with DIGEST-MD5 authentication diffstat: nbxmpp/auth_nb.py | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diffs (48 lines): diff -r 42db91212734 -r 4f57dc985c04 nbxmpp/auth_nb.py --- a/nbxmpp/auth_nb.py Sun Jan 06 13:46:59 2013 +0100 +++ b/nbxmpp/auth_nb.py Sun Jan 06 15:10:26 2013 +0100 @@ -39,7 +39,7 @@ def HH(some): return hashlib.md5(some).hexdigest() def H(some): return hashlib.md5(some).digest() -def C(some): return ':'.join(some) +def C(some): return b':'.join(some) try: kerberos = __import__('kerberos') @@ -463,7 +463,7 @@ @staticmethod def _convert_to_iso88591(string): try: - string = string.decode('utf-8').encode('iso-8859-1') + string = string.encode('iso-8859-1') except UnicodeEncodeError: pass return string @@ -484,14 +484,18 @@ hash_realm = self._convert_to_iso88591(self.resp['realm']) hash_password = self._convert_to_iso88591(self.password) A1 = C([H(C([hash_username, hash_realm, hash_password])), - self.resp['nonce'], self.resp['cnonce']]) - A2 = C(['AUTHENTICATE', self.resp['digest-uri']]) - response = HH(C([HH(A1), self.resp['nonce'], self.resp['nc'], - self.resp['cnonce'], self.resp['qop'], HH(A2)])) - A2 = C(['', self.resp['digest-uri']]) - self.digest_rspauth = HH(C([HH(A1), self.resp['nonce'], - self.resp['nc'], self.resp['cnonce'], self.resp['qop'], - HH(A2)])) + self.resp['nonce'].encode('utf-8'), self.resp['cnonce'].encode( + 'utf-8')]) + A2 = C([b'AUTHENTICATE', self.resp['digest-uri'].encode('utf-8')]) + response = HH(C([HH(A1).encode('utf-8'), self.resp['nonce'].encode( + 'utf-8'), self.resp['nc'].encode('utf-8'), self.resp['cnonce'].\ + encode('utf-8'), self.resp['qop'].encode('utf-8'), HH(A2).\ + encode('utf-8')])) + A2 = C([b'', self.resp['digest-uri'].encode('utf-8')]) + self.digest_rspauth = HH(C([HH(A1).encode('utf-8'), self.resp[ + 'nonce'].encode('utf-8'), self.resp['nc'].encode('utf-8'), + self.resp['cnonce'].encode('utf-8'), self.resp['qop'].encode( + 'utf-8'), HH(A2).encode('utf-8')])) self.resp['response'] = response sasl_data = '' for key in ('charset', 'username', 'realm', 'nonce', 'nc', 'cnonce',
1
0
0
0
gajim: fix connecting with python3 internal ssl implementation
by Yann Leboulanger
06 Jan '13
06 Jan '13
changeset 2688b908138c in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=2688b908138c
description: fix connecting with python3 internal ssl implementation diffstat: src/common/connection.py | 2 +- src/common/connection_handlers_events.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diffs (28 lines): diff -r 6ddfd952427e -r 2688b908138c src/common/connection.py --- a/src/common/connection.py Sun Jan 06 15:41:26 2013 +0400 +++ b/src/common/connection.py Sun Jan 06 13:47:23 2013 +0100 @@ -1326,7 +1326,7 @@ certificate=con.Connection.ssl_certificate[i])) return True i += 1 - if hasattr(con.Connection, 'ssl_fingerprint_sha1'): + if len(con.Connection.ssl_fingerprint_sha1): saved_fingerprint = gajim.config.get_per('accounts', self.name, 'ssl_fingerprint_sha1') if saved_fingerprint: diff -r 6ddfd952427e -r 2688b908138c src/common/connection_handlers_events.py --- a/src/common/connection_handlers_events.py Sun Jan 06 15:41:26 2013 +0400 +++ b/src/common/connection_handlers_events.py Sun Jan 06 13:47:23 2013 +0100 @@ -1568,10 +1568,10 @@ self.ssl_msg = ssl_error.get(er, _('Unknown SSL error: %d') % \ er) self.ssl_cert = '' - if hasattr(self.conn.connection.Connection, 'ssl_cert_pem'): + if len(self.conn.connection.Connection.ssl_cert_pem): self.ssl_cert = self.conn.connection.Connection.ssl_cert_pem self.ssl_fingerprint = '' - if hasattr(self.conn.connection.Connection, 'ssl_fingerprint_sha1'): + if len(self.conn.connection.Connection.ssl_fingerprint_sha1): self.ssl_fingerprint = \ self.conn.connection.Connection.ssl_fingerprint_sha1 return True
1
0
0
0
python-nbxmpp: fix connecting with python3 internal ssl implemen...
by Yann Leboulanger
06 Jan '13
06 Jan '13
changeset 42db91212734 in /home/hg/repos/python-nbxmpp
details:http://hg.gajim.org/python-nbxmpp?cmd=changeset;node=42db91212734
description: fix connecting with python3 internal ssl implementation diffstat: nbxmpp/tls_nb.py | 35 ++++++++++++++++++++++++----------- 1 files changed, 24 insertions(+), 11 deletions(-) diffs (77 lines): diff -r d971d36bbdd3 -r 42db91212734 nbxmpp/tls_nb.py --- a/nbxmpp/tls_nb.py Sat Jan 05 17:24:18 2013 +0100 +++ b/nbxmpp/tls_nb.py Sun Jan 06 13:46:59 2013 +0100 @@ -16,6 +16,7 @@ ## GNU General Public License for more details. import socket +import ssl from .plugin import PlugIn import sys @@ -222,9 +223,10 @@ # we simply ignore flags since ssl object doesn't support it try: return self.sslobj.read(bufsize) - except socket.sslerror as e: - log.debug("Recv: Caught socket.sslerror: " + repr(e), exc_info=True) - if e.args[0] not in (socket.SSL_ERROR_WANT_READ, socket.SSL_ERROR_WANT_WRITE): + except ssl.SSLError as e: + log.debug("Recv: Caught ssl.SSLError: " + repr(e), exc_info=True) + if e.args[0] not in (ssl.SSL_ERROR_WANT_READ, + ssl.SSL_ERROR_WANT_WRITE): raise SSLWrapper.Error(self.sock or self.sslobj, e) return None @@ -232,9 +234,10 @@ # we simply ignore flags since ssl object doesn't support it try: return self.sslobj.write(data) - except socket.sslerror as e: + except ssl.SSLError as e: log.debug("Send: Caught socket.sslerror:", exc_info=True) - if e.args[0] not in (socket.SSL_ERROR_WANT_READ, socket.SSL_ERROR_WANT_WRITE): + if e.args[0] not in (ssl.SSL_ERROR_WANT_READ, + ssl.SSL_ERROR_WANT_WRITE): raise SSLWrapper.Error(self.sock or self.sslobj, e) return 0 @@ -433,14 +436,24 @@ log.debug("_startSSL_stdlib called") tcpsock=self._owner try: - tcpsock._sock.setblocking(True) - tcpsock._sslObj = socket.ssl(tcpsock._sock, None, None) - tcpsock._sock.setblocking(False) - tcpsock._sslIssuer = tcpsock._sslObj.issuer() - tcpsock._sslServer = tcpsock._sslObj.server() + tcpsock._sslObj = ssl.wrap_socket(tcpsock._sock, + ssl_version=ssl.PROTOCOL_TLSv1, do_handshake_on_connect=False) wrapper = StdlibSSLWrapper(tcpsock._sslObj, tcpsock._sock) tcpsock._recv = wrapper.recv tcpsock._send = wrapper.send + log.debug("Initiating handshake...") + try: + tcpsock._sslObj.do_handshake() + except (ssl.SSLError) as e: + if e.args[0] in (ssl.SSL_ERROR_WANT_READ, + ssl.SSL_ERROR_WANT_WRITE): + pass + else: + log.error('Error while TLS handshake: ', exc_info=True) + return False + except: + log.error('Error while TLS handshake: ', exc_info=True) + return False except: log.error("Exception caught in _startSSL_stdlib:", exc_info=True) return False @@ -455,7 +468,7 @@ self._owner.ssl_certificate.append(cert) self._owner.ssl_errnum.append(errnum) self._owner.ssl_cert_pem.append(OpenSSL.crypto.dump_certificate( - OpenSSL.crypto.FILETYPE_PEM, cert).decode('utf-8')) + OpenSSL.crypto.FILETYPE_PEM, cert).decode('utf-8')) return True except: log.error("Exception caught in _ssl_info_callback:", exc_info=True)
1
0
0
0
gajim: Fix PEP
by Denis Fomin
06 Jan '13
06 Jan '13
changeset 7ac7e47a48d4 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=7ac7e47a48d4
description: Fix PEP diffstat: src/common/pep.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r b2c33dd5485f -r 7ac7e47a48d4 src/common/pep.py --- a/src/common/pep.py Sun Jan 06 15:21:23 2013 +0400 +++ b/src/common/pep.py Sun Jan 06 15:41:26 2013 +0400 @@ -157,7 +157,8 @@ 'sleeping': _('Sleeping'), 'thinking': _('Thinking')}, 'relaxing': {'category': _('Relaxing'), - 'fishing': _('Gaming'), + 'fishing': _('Fishing'), + 'gaming': _('Gaming'), 'going_out': _('Going out'), 'partying': _('Partying'), 'reading': _('Reading'),
1
0
0
0
gajim: Fix PEP
by Denis Fomin
06 Jan '13
06 Jan '13
changeset 6ddfd952427e in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=6ddfd952427e
description: Fix PEP diffstat: src/common/pep.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r 5e9496f6ab87 -r 6ddfd952427e src/common/pep.py --- a/src/common/pep.py Sun Jan 06 12:35:10 2013 +0400 +++ b/src/common/pep.py Sun Jan 06 15:41:26 2013 +0400 @@ -157,7 +157,8 @@ 'sleeping': _('Sleeping'), 'thinking': _('Thinking')}, 'relaxing': {'category': _('Relaxing'), - 'fishing': _('Gaming'), + 'fishing': _('Fishing'), + 'gaming': _('Gaming'), 'going_out': _('Going out'), 'partying': _('Partying'), 'reading': _('Reading'),
1
0
0
0
← Newer
1
...
884
885
886
887
888
889
890
...
1764
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
Results per page:
10
25
50
100
200