Commit graph

240 commits

Author SHA1 Message Date
Yann Leboulanger
32b583986f [Jelmer Vernooij] Kerberos (GSSAPI) SASL authentication mechanism added 2008-09-27 14:59:12 +00:00
Yann Leboulanger
3d46bf0b6e [dwd] fix reconnection when we get wrong XML with undeclared namespaces. Fixes #3083 2008-09-27 14:26:50 +00:00
Yann Leboulanger
e236382f3d handle XEP-0203 (Delayed Delivery) and use it when forwarding unread messages via adhoc commands. Fixes #4347 2008-09-26 11:11:38 +00:00
Yann Leboulanger
3e2f9fcbec prevent affiliatio spoofing by checking namespace. Fixes #4323 2008-09-16 08:30:27 +00:00
Yann Leboulanger
673052f1b8 handle disconnection while insecure connetion dialog is opened. fixes #4138 2008-07-30 15:43:53 +00:00
js
8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
js
3bd76e406a Partially fix #4098.
This is, however, only a half fix as this fixes that it fails when
there's None in waiting_descriptors[2], but actually, there never
should be None, so I have to investigate why there was none.

This patch is, however, correct and needed and the other queues also
have that check. It's just that I also need to fix the reason for
the None in the queue.
2008-07-15 23:23:31 +00:00
Brendan Taylor
814c9c118a XEP-0116 support discovery 2008-07-14 00:26:05 +00:00
js
408d3b4ff6 Revert r9859 as this killed the stream.
This isn't an easy fix, we need to stop using expat in namespace aware
mode.
2008-06-29 01:40:49 +00:00
js
23cdc3fd6f Don't disconnect on unbound prefixes.
Fixes #3083. I can't believe this was unfixed for so long, as it's
really a rather easy fix.
2008-06-29 01:25:52 +00:00
Yann Leboulanger
a62328ecd3 remove duplicate function, simplify logic 2008-06-26 11:30:13 +00:00
js
abdd43e5eb Type in NS. 2008-06-17 18:13:23 +00:00
js
9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +00:00
Yann Leboulanger
1d745c1c9d use SSLv23 method (it support SSLv2, v3 and TLSv1) instead of only TLSv1 method as some server (gmail) don't support TLSv1 method. fixes #3786 2008-06-16 14:12:59 +00:00
Brendan Taylor
b0aeefcbb5 flush xmpppy's send queue before disconnecting 2008-05-19 20:04:14 +00:00
Yann Leboulanger
da3e8a7328 remove a connect_failure callback when we are connected. Fixes #3914 2008-05-05 08:50:07 +00:00
Yann Leboulanger
a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Yann Leboulanger
ef97e91a1d put namespace name in protocol.py 2008-04-18 18:19:33 +00:00
Yann Leboulanger
041969309d add many supported features to disco#info reply. fixes #3872 2008-04-18 18:10:12 +00:00
Jean-Marie Traissard
968b2acc4f http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with
'is' or 'is not', never the equality operators."
Comparisons to None part; second one...
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:26:07 +00:00
Jean-Marie Traissard
2ce13dc40e http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with 'is' or 'is not', never the equality operators."
Comparisons to None part
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:02:56 +00:00
Yann Leboulanger
3aefee4700 try all IPs of a given host in case first one fails. Fixes #2958 2008-04-16 11:02:01 +00:00
Yann Leboulanger
3c2a220c65 handle all PyopenSSL errors. fixes #3686 2008-01-23 19:04:35 +00:00
Stephan Erb
55eed6bda6 Revert r9252 for now. E2E was affected and task is shifted to next releas anyway. See #3694 2008-01-20 23:24:03 +00:00
Stephan Erb
9e74881ed6 Merge xmpp.py 4.1 simplexml.py
See #3694


 * WARNING! Incompartible change! Now newtag=n.T.newtag do not creates new tag
but only returns existing one (if possible). If you need to create tag use
either .NT. method or attribute set (i.e. n.T.newtag=something).

 * Added CDATA extracting method to xml node.

 * added xmlns safety check

 * Fixed node attribute deletion with "del node[attr]" syntax.

 * Ordering fix for when addChild and addData are used on the same node (may increase memory usage, might need to watch for that)

 * Fixes for children node fetching, still not perfect, but much better
2008-01-18 20:55:18 +00:00
Yann Leboulanger
62924fcf38 fix traceback when we get a presence with no fram attribute. see #3666 2008-01-09 19:05:38 +00:00
Stephan Erb
e25ac90068 Improving readability (little) by shifting some boolean checks to a lambda function. 2007-12-27 22:28:40 +00:00
Yann Leboulanger
14f1232308 get SSL error message where it is in Error instance 2007-12-15 12:10:25 +00:00
Yann Leboulanger
b7cc062d7d [shprotx] fix loading of multiple SSL certificates and better error message. fixes #3619 2007-12-15 08:31:42 +00:00
Yann Leboulanger
a645006bf8 merge diff from trunk 2007-12-12 08:44:46 +00:00
Yann Leboulanger
ea24ee82e5 merge diff from trunk to pep branch 2007-08-09 15:39:18 +00:00
Yann Leboulanger
07b324ced4 ability to see pep nodes and their access model. TODO: ability to change it 2007-06-03 10:30:34 +00:00
Piotr Gaczkowski
e3ef0821b3 Merge with trunk 2007-06-03 10:04:20 +00:00
Piotr Gaczkowski
512db7618b Lame Mood and Activity support. Announcing caps. 2007-03-28 21:18:16 +00:00
Yann Leboulanger
efaa1a18e7 add a now argument to the send function, so that stanza is sent instantly instead of added to queue. Use it to send answer to adhoc command when we disconnect. fixes #3008 and #2808 2007-03-15 12:53:29 +00:00
junglecow
bbed22a410 - Workaround for #2846: Make the error silent. Fixes #2846.
- Workaround for #2838: Use synchronous (blocking) SSL handshake. Fixes #2838.
2007-03-03 20:13:43 +00:00
Yann Leboulanger
cba44a43a1 handle proxy errors. fixes #799 (socks5 proxies should now be supported. tests needed) 2007-02-07 22:05:52 +00:00
Yann Leboulanger
0ec4aa3676 [smoku] fix SASL auth. fixes #1911 2007-02-06 08:57:59 +00:00
Yann Leboulanger
f450c0eb65 [misc] XEP-0199 (Xmp ping) support.fixes #2947 2007-01-27 10:19:53 +00:00
Yann Leboulanger
852974efa7 ability to set and receive an empty subject. fixes #2938 2007-01-26 18:30:45 +00:00
Yann Leboulanger
9a6b090506 begining of socks5 proxy support. error handling is missing. see #799 2007-01-24 21:50:59 +00:00
junglecow
37ffd5585b Removed an old-style logging command, as _owner may not always exist. Partial attempt at #2928 2007-01-23 20:06:07 +00:00
Yann Leboulanger
3567a8c20f remove privacy list from dialog only when server return the result, else show an error dialog. fixes #2853 2007-01-11 20:21:53 +00:00
junglecow
9814451e07 - [dcraven] Fixed spelling error. Fixes #2580.
- Demoted some error messages from error to debug level.
2007-01-01 02:11:15 +00:00
junglecow
5529852ded - Fix TB on fingerprint mismatch
- Add debug message on import failure of PyOpenSSL
 - Update gajim.org digest after migration to new server
2006-12-29 01:46:46 +00:00
Yann Leboulanger
70bf104cfc [misc] XEP-0202 (Entity Time) support. fixes #2830 2006-12-28 16:27:41 +00:00
junglecow
e1ad5b15d0 - Removed unnecessary import
- Fixed name of transport_nb's logger
2006-12-28 11:15:44 +00:00
junglecow
c16642c838 Catch socket.gaierror. Fixes #2840. 2006-12-27 22:45:23 +00:00
junglecow
e816b38a0f Check if self._sock exists before trying to close it. Fixes #2839. 2006-12-27 20:44:21 +00:00
junglecow
5f16eb633b Re-deleted exc_clear. Reason:
- It's unnecessary
 - It confuses people

See [7433] and #1575. This is an old workaround for psyco braindeadness, which
we don't use anymore. If there's a reason this should stay in code, please
document clearly, and re-add. Thanks.
2006-12-27 18:57:30 +00:00