Commit graph

372 commits

Author SHA1 Message Date
Yann Leboulanger
c4a720aa89 handle ZeroReturnError raised by PyOpenSSL 2009-07-13 17:47:20 +02:00
Yann Leboulanger
2bd1e1410d get errornum correctly in SSLWrapperError exceptions 2009-07-13 17:44:47 +02:00
Yann Leboulanger
278a8bc59e merge elghinn's branch (roster versioning) to trunk. Fixes #4661, #3190 2009-07-10 15:05:01 +02:00
Anaël Verrier
4d10bdcf6f * In order to allow the viewing of the roster when we are offline (and some other cool stuffs), with and without roster versioning, now we load roster when RosterWindow is created (at gajim startup). Fixes #3190 2009-06-30 11:46:27 +02:00
Anaël Verrier
d347b79c38 * added a method to load roster from DB
* now we load roster from DB when we receive an iq result for the roster without any query
* added a "force" argument to NonBlockingRoster.getRoster(), to force the return of the instance
2009-06-27 17:56:04 +02:00
Jonathan Schleifer
086d031374 Remove spaces at EOL. 2009-06-15 21:00:14 +02:00
Anaël Verrier
9133960fbc * added one table in logs.db to save roster
* added "roster_version" in configuration to save roster version for the account
* added "ver" attribute when gajim requests the roster
2009-06-02 22:48:32 +02:00
Yann Leboulanger
a7f0022bb4 Add a second timeout to differenciate keepalive and ping alive packets. We now wait 55s before sending a keepalive (whitespace packet) and 2 minutes before sendind a xmpp ping (and then we wait for 1min the answer before reconnecting) Fixes #4643 2009-05-01 09:18:21 +00:00
Yann Leboulanger
e4029dddd6 prevent traceback when identifying stream error. Fixes #4946 2009-04-30 08:32:32 +00:00
Yann Leboulanger
d37d1e973f remove latest \n in bosh received messages (one is added when we send) 2009-04-07 17:12:35 +00:00
Yann Leboulanger
a6f62ac7c6 ignore port in bosh URL, it's entered separetly. Take into account proxy username when using bosh 2009-04-06 14:05:07 +00:00
Yann Leboulanger
5e44243758 fix traceback with kerberos GSSError handling. 2009-03-20 20:02:05 +00:00
Yann Leboulanger
9d307570df missing ) 2009-03-18 11:03:16 +00:00
Yann Leboulanger
346dbc04b2 handle GSSError exceptions. Fixes #4913 2009-03-18 09:14:10 +00:00
Yann Leboulanger
9900698dc5 typo. Fixes #4912 2009-03-18 07:10:18 +00:00
Yann Leboulanger
cfd0b4835a prevent traceback when password is not entered. Fixes #4912 2009-03-17 19:35:52 +00:00
Yann Leboulanger
9b5c8db2ce prevent Traceback when server replies badly to resource binding request. Fixes #4880 2009-03-16 09:54:57 +00:00
Yann Leboulanger
16fa30a1e7 handle stream error and show message to user. Fixes #4660, #4823 2009-02-19 13:18:23 +00:00
Yann Leboulanger
a2b534c040 really fix dispatcher to support several waiting stanza at the same time. Fix #4299 2009-02-15 14:13:21 +00:00
Yann Leboulanger
f443673bfd allow to wait for more than one answer at the same time with SendAndCallForResponse. Fixes #4299 2009-02-15 13:17:33 +00:00
Yann Leboulanger
531ab92651 don't log as error, but as info, connection lost. Fixes #4800 2009-02-13 22:37:51 +00:00
Yann Leboulanger
cba0ae51cf fix traceback when connecting with PLAIN. Fixes #4815 2009-02-13 22:20:13 +00:00
Yann Leboulanger
849108b11f request connection password only when neede. No need to request it for GSSAPI or ANONYMOUS login. see #2465 2009-02-13 20:24:23 +00:00
Yann Leboulanger
baa208d0b6 remove duplicate code. Fixes #4790 2009-02-08 10:21:50 +00:00
Yann Leboulanger
e0123f0c24 encrypt and decrypt GPG messages in a thread, and call a callback when it's finished (sending a message is now asyncronous). Fixes #4445 2009-02-06 19:01:36 +00:00
Yann Leboulanger
8b61a2050f don't fail when there is an unreadable certificate file. 2009-01-24 12:45:57 +00:00
Yann Leboulanger
26ed4433b4 prevent in GUI when login / password is wrong, even if there is an unknown mechnism. see #4672 2009-01-23 17:27:21 +00:00
Yann Leboulanger
ea881946f4 don't fail when we fail to open a certificate file. Fixes #4722 2009-01-23 09:24:17 +00:00
Yann Leboulanger
674924889f some server require SSLv2. Fixes #4672 2009-01-22 20:39:31 +00:00
Yann Leboulanger
cd9c041585 don't fail when stream version < 1.0. Fixes #4600 2009-01-20 09:07:41 +00:00
Yann Leboulanger
48d4199237 [dwd] re-enable TLS. Fixes #4674 2009-01-17 12:43:13 +00:00
Yann Leboulanger
77b5c85f18 load certificates from /etc/ssl/certs too. Fixes #4633 2009-01-15 17:54:28 +00:00
Yann Leboulanger
9b2382cd0e [dwd] better way to encode using base64. Fixes #4568 2009-01-14 08:51:07 +00:00
Stephan Erb
541167aa3e Move IdleCommand from resolver.py to idlequeue.py 2009-01-11 17:54:41 +00:00
Stephan Erb
0f61260578 Use logic which idlequeue shall be used to idlequeue module. 2009-01-11 17:11:17 +00:00
Stephan Erb
f8e6635edf Remove some (now) useless returns that where added because of a broken commit of mine... 2009-01-11 17:10:41 +00:00
tomk
2b0ef67c55 fixes #4657 - traceback on terminating stanza after BOSH init request 2009-01-11 15:12:28 +00:00
Stephan Erb
8a19e11bee Add some FIXME statements due to open questions. Improve a two default parameters. 2009-01-11 13:42:39 +00:00
js
6ede969f5f Fix missing returns, so we don't run into that assert. 2009-01-10 22:46:26 +00:00
Stephan Erb
c8dc8cd758 Fix a potential traceback in onreceive() of NonBlockingTransport. A few more codingstandards 2009-01-10 16:44:11 +00:00
Stephan Erb
bc3445881f Rename client.py to plugin.py, as all client logic has already been moved to client_nb.py
Introduce a get_instance factory method for all plugins and other xmpp related classes. This will help us to decouple plugs in order to make them testable.
2009-01-09 00:49:58 +00:00
Stephan Erb
e00f871b26 Use hashlib module in favor of sha and md5. 2009-01-08 16:51:26 +00:00
Stephan Erb
cca10e6d29 A few more coding standards and readability improvements in client_nb.py. 2009-01-08 16:30:27 +00:00
Stephan Erb
10449444dd Switch to SSL version 3 as the channel encryption protocol. As of http://docs.python.org/dev/library/ssl.html this is the maximally compatible SSL variant. 2009-01-08 16:14:26 +00:00
Stephan Erb
ed3de38ce5 Revert r10931. Fixes #4632. See #2634 2009-01-03 16:34:58 +00:00
Stephan Erb
28112d6681 Fix indentation error. 2008-12-31 14:04:42 +00:00
Stephan Erb
8a76efb703 Proposed Fix. Make sure we read all data from our SSL socket wrappers and don't just rely on gobject.io_add_watch, select or poll.
This isn't really a clean solution, but the less intrusives fix that I can think of. Fixes #2634.
2008-12-31 14:01:53 +00:00
Stephan Erb
b2a5b1046c Remove print. 2008-12-28 14:55:23 +00:00
Stephan Erb
d8a2d8f447 Backport a few XMPPPY upstream changes.
* Use namespace instead of attrs={} for addChild
 * Unplug SASL module on auth failure (we currently disconnect so don't really need it)
2008-12-28 14:53:20 +00:00
Stephan Erb
f83eb5ae95 Remove two more "from protocol import *". 2008-12-28 01:52:21 +00:00