Skip to content
Snippets Groups Projects
  1. Jan 24, 2017
    • Nikolay Yakimov's avatar
      [gotr] Fix AttibuteError bug in get_control · ab4eeae9
      Nikolay Yakimov authored
      gotr expects fjid to be str, but it can be nbxmpp.JID. Converting to str
      shouldn't hurt, although could as well call fjid.getStripped() instead
      of gajim.get_jid_without_resource.
      
      Traceback (most recent call last):
        File "/usr/lib64/python2.7/site-packages/gajim/common/ged.py", line 93, in raise_event
          if handler(*args, **kwargs):
        File "/home/livid/.local/share/gajim/plugins/gotr/otrmodule.py", line 564, in handle_incoming_msg
          appdata={'thread':event.session.thread_id if event.session else None})
        File "/home/livid/.local/share/gajim/plugins/gotr/potr/context.py", line 210, in receiveMessage
          self.crypto.handleAKE(message, appdata=appdata)
        File "/home/livid/.local/share/gajim/plugins/gotr/potr/crypt.py", line 282, in handleAKE
          outMsg = self.ake.handleRevealSig(inMsg)
        File "/home/livid/.local/share/gajim/plugins/gotr/potr/crypt.py", line 420, in handleRevealSig
          self.onSuccess(self)
        File "/home/livid/.local/share/gajim/plugins/gotr/potr/crypt.py", line 316, in goEncrypted
          self.ctx._wentEncrypted()
        File "/home/livid/.local/share/gajim/plugins/gotr/potr/context.py", line 313, in _wentEncrypted
          self.setState(STATE_ENCRYPTED)
        File "/home/livid/.local/share/gajim/plugins/gotr/otrmodule.py", line 175, in setState
          OtrPlugin.update_otr(self.peer, self.user.accountname)
        File "/home/livid/.local/share/gajim/plugins/gotr/otrmodule.py", line 521, in update_otr
          ctrl = cls.get_control(user, acc)
        File "/home/livid/.local/share/gajim/plugins/gotr/otrmodule.py", line 535, in get_control
          gajim.get_jid_without_resource(fjid), account)
        File "/usr/lib64/python2.7/site-packages/gajim/common/gajim.py", line 297, in get_jid_without_resource
          return jid.split('/')[0]
      AttributeError: JID instance has no attribute 'split'
    • Nikolay Yakimov's avatar
      [gotr] handle_incoming_msg: set XHTML correctly · b299827a
      Nikolay Yakimov authored
      In case we get XHTML in OTR message for some reason (e.g. from gajim
      0.16.4), we will see that instead of decrypted content, if we don't
      delete existing html first.
      
      This doesn't touch old code in handle_outgoing_msg (which will get exectued
      gajim<0.16.4). That should work between versions,
      given handle_incoming_msg will overwrite any XHTML in
      OTR-encrypted message.
  2. Jan 23, 2017
  3. Jan 14, 2017
  4. Jan 13, 2017
  5. Jan 12, 2017
  6. Jan 10, 2017
  7. Dec 27, 2016
  8. Dec 25, 2016
  9. Dec 20, 2016
    • Philipp Hörist's avatar
      Merge branch '78-tls-context' into 'master' · 2c96d157
      Philipp Hörist authored
      Resolve "Verify TLS certificate of Plugin Server"
      
      Closes #78 
      
      Please note that this adds basic TLS verification (a big improvement over the current status!) but there is still room for enhancement: certificate pinning or CA pining, disabling TLS1.0, and probably some more. I'm leaving those for a separate MR (and probably further discussion)
      
      See merge request !6
      2c96d157
Loading