Commit graph

3174 commits

Author SHA1 Message Date
junglecow
8707d511c1 - More accurate description of None outcome of _check_fingerprint
- Check for presence of PyOpenSSL in fingerprint check. Fixes #2841.
2006-12-27 23:28:47 +00:00
junglecow
cf291c3c2f Move fingerprint check into its own function. 2006-12-27 23:25:32 +00:00
junglecow
c16642c838 Catch socket.gaierror. Fixes #2840. 2006-12-27 22:45:23 +00:00
Yann Leboulanger
447ec9ecd6 [gjc] ask password when gnomekeyring isn't available. fixes #2834 2006-12-27 21:13:42 +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
junglecow
847d9fe6e9 - Enhanced parsing of -l/--loglevel option
- Demote one message w/exception to debug
 - Hopefully improved user error message when fingerprint is bad
2006-12-27 18:38:50 +00:00
Nikos Kouremenos
64dec82bb6 readd something, unless there is a reason it got removed in [7706] 2006-12-27 06:09:15 +00:00
Yann Leboulanger
7e11bf1172 do not count transport in global online / total users. fixes #2801 2006-12-26 13:40:01 +00:00
Yann Leboulanger
e8657b4fdb do not count not in roster contacts in online / total users. see #2801 2006-12-26 13:33:09 +00:00
junglecow
9deb76a8ad - Started new way of logging, with configurable level for each subsystem
- Added -q, --quiet (speaks for itself)
   - Added -l, --loglevel subsystem=LEVEL,subsystem2=LEVEL2,...
 - Quell winsock 10035 error. (Equivalent of EINPROGRESS, but winsock likes to have its own error numbers.)
 - Hide SSL certificate debug stuff unless gajim.c.x.transports loglevel is DEBUG or lower
 - Avoid unicode problems if we set a profile
 - Move fingerprint checks from _register_handlers to _connect_success
 - Some enhancements to fpr checking code
2006-12-23 21:18:07 +00:00
junglecow
44674f7e75 - Implement matching of fingerprints against servers.xml
- Add support for fingerprints to servers.xml parser.
 - Add support for 'hidden' servers to servers.xml parser.
 - Add some fingerprints to servers.xml, for testing and as example for the new format.
 - Force asynchronous (nonblocking) SSL handshake in all case
 - Add logging to c/connection.py

Known issues:
 - Checking of fingerprints doesn't work on in-band SSL (Typically port 5222) because of stuff happening out of sequence. Workaround: use immediate SSL mode ("Legacy SSL" option in server config). Because there is as of yet no other way to /force/ SSL, this is also the most secure setting.
 - A lot of code is still looking for a better place to live.
2006-12-22 23:30:23 +00:00
junglecow
7f44b60267 - Use bytestrings instead of unicode for filesystem paths. See #2812 and close if fix works. 2006-12-22 13:49:38 +00:00
junglecow
35ecad1188 - Switch back to TLSv1 method
- Remove debug prints in stdlib ssl compatibility code
2006-12-21 18:08:17 +00:00
junglecow
62350adb36 - PyOpenSSL branch merged to trunk
Welcome to the world of PyOpenSSL! Please install PyOpenSSL, thanks!

svn merge -r 7426:HEAD svn://svn.gajim.org/gajim/branches/pyopenssl
2006-12-20 21:52:40 +00:00
junglecow
fddb000a89 [Trunk]
- In verbose mode, print encodings. (Especially for Windows users who don't have Python) (gajim.py)
 - Attempt at fixing traceback when getting user's home directory in Windows. See #2812. (c/configpaths.py)
 - Show 'error' icon next to account while waiting for reconnect. Fixes #2786. (c/connection_handlers.py, c/gajim.py, c/connection.py)
[PyOpenSSL]
 - Fix 100% CPU usage and hanging connection when server closes connection on us. (c/x/transports_nb.py)
 - Fix 'hanging' connection when server closes the connection on us before we can open the XML stream. (Disconnect handler didn't get called.) (c/x/client_nb.py)
 - Change prints to logger calls, various enhancements to debug printing, reduce spam (c/x/transports_nb.py)
 - this → self (c/x/transports_nb.py)
 - Call _do_receive() once to collect error message from socket, when error flag is raised in scheduler. (c/x/transports_nb.py)
2006-12-20 20:40:08 +00:00
junglecow
a4655276fe [Trunk]
- In verbose mode, print encodings. (Especially for Windows users who don't have Python) (gajim.py)
 - Attempt at fixing traceback when getting user's home directory in Windows. See #2812. (c/configpaths.py)
 - Show 'error' icon next to account while waiting for reconnect. Fixes #2786. (c/connection_handlers.py, c/gajim.py, c/connection.py)
[PyOpenSSL]
 - Fix 100% CPU usage and hanging connection when server closes connection on us. (c/x/transports_nb.py)
 - Fix 'hanging' connection when server closes the connection on us before we can open the XML stream. (Disconnect handler didn't get called.) (c/x/client_nb.py)
 - Change prints to logger calls, various enhancements to debug printing, reduce spam (c/x/transports_nb.py)
 - this → self (c/x/transports_nb.py)
 - Call _do_receive() once to collect error message from socket, when error flag is raised in scheduler. (c/x/transports_nb.py)
2006-12-20 20:40:08 +00:00
Yann Leboulanger
0e95430ac8 prepare 0.11 release 2006-12-19 09:12:54 +00:00
Nikos Kouremenos
6faf04a056 make sure we use dbus public api so we work for python dbus 0.80; see #2784 2006-12-17 11:43:34 +00:00
Tomasz Melcer
2e16b3a590 Commands: Fix TB when someone executes an unknown command. 2006-12-16 23:30:07 +00:00
junglecow
8c78a14c3c - In [7647], reading of PID file was moved out of try..except block. Fixed.
- [PyOpenSSL] Small fix to error handling.
2006-12-15 10:57:25 +00:00
Yann Leboulanger
2287625fdf encrypt must return 2 values. 2006-12-14 10:56:14 +00:00
junglecow
c09e6e0b93 [PyOpenSSL]
- Improved data extraction from exceptions
 - Clearer error messages
 - Reduced exception spam
2006-12-13 20:15:22 +00:00
Yann Leboulanger
0fb837f74f detect when gpg is not installed and print a warning. fixes #2760 2006-12-13 12:29:24 +00:00
junglecow
7fbb4279ac - Reset retrycount if we auth successfully, so we can start retrying at 10 seconds instead of 15 minutes. This is an old bug, but wasn't noticable with 10 vs 20 seconds. 2006-12-10 20:22:02 +00:00
junglecow
7c0696093a - Trying to connect to server every 20 seconds forever is extremely rude to its owner. Let's be polite and do exponential back-off. (See #2411)
- [PyOpenSSL] Ported [7443] to pyopenssl branch.
2006-12-08 21:19:01 +00:00
junglecow
9353c13d65 - Trying to connect to server every 20 seconds forever is extremely rude to its owner. Let's be polite and do exponential back-off. (See #2411)
- [PyOpenSSL] Ported [7443] to pyopenssl branch.
2006-12-08 21:19:01 +00:00
Yann Leboulanger
cebcb74c9b recognize x-tlen type from tlen transports. fixes #2756 2006-12-07 07:10:33 +00:00
Yann Leboulanger
f89ccfe441 detect error while encrypting message, block sending it, and display error message. fixes #2712 2006-12-06 16:19:47 +00:00
Nikos Kouremenos
330ebb9c09 use the blinking when systray holds pending events [only new api/only in windows atm] 2006-12-05 18:45:02 +00:00
Yann Leboulanger
658629dbcc answer correctly to disco#info when it contains node. We are now complient with XEP115. fixes #2713 2006-12-02 17:02:53 +00:00
Yann Leboulanger
f1e5984909 send in caps (XEP-0115) that we support XHTML-IM 2006-12-02 12:06:14 +00:00
junglecow
4a58bc4797 [pyopenssl] Yet more exception fixes 2006-12-01 22:23:45 +00:00
Yann Leboulanger
d5b62294ab remove useless test in get_cached_vcard func. fixes #2717 2006-12-01 21:23:24 +00:00
Yann Leboulanger
24d6c7ccaa add DEFAULT_ICONSET in Config class. fixes #2731 2006-12-01 20:01:37 +00:00
Stefan Bethge
cc09dae0fe call missing init for zeroconf vcard dummy 2006-11-29 22:57:37 +00:00
Nikos Kouremenos
e3dd735831 yeah it is official. Gajim runs on Windows Vista. Now it even detects it and sends it as OS [previously was just saying Windows]. Long Live Ballmer! [hahaha]: http://img86.imageshack.us/img86/7944/myvistadesktopow7.jpg 2006-11-29 02:34:07 +00:00
junglecow
236ed0463a [pyopenssl] More exception fixes 2006-11-28 22:12:03 +00:00
Yann Leboulanger
ac4fab231c remove gc contact avatar when he removes his avatar. see #2718 2006-11-28 16:41:31 +00:00
Yann Leboulanger
e9db205110 remove avatar files when we publish a vcard without an avatar. see #2718 2006-11-28 15:40:08 +00:00
junglecow
5cb241b8c0 [trunk]
- Typo
[pyopenssl]
- Better exception handling
- Prevent 100% cpu usage when ssl handshake is slow
2006-11-28 01:02:31 +00:00
Jean-Marie Traissard
7646e94ff5 gc_nicknames_colors contained two green colors and status messages are green too.
Moved one to grey and one to dark green, differentiation seems ok now
2006-11-27 16:39:17 +00:00
Jean-Marie Traissard
6b0664fa83 Cache xep85 support but continue to violate xep85 5.1.2 for release. See #2637. 2006-11-26 22:00:53 +00:00
Yann Leboulanger
04b6d6a8f0 reduce number of if / elif 2006-11-26 12:56:44 +00:00
Yann Leboulanger
ef8553031b [elrodeo] add a sound option when receiving gmail notifications. fixes #2697 2006-11-26 09:28:12 +00:00
Yann Leboulanger
5e6f9d0118 add an option to define the chatstate we want to show in char window. fixes #2706 2006-11-26 09:06:47 +00:00
Yann Leboulanger
a37b946098 [sgala] IPV6 support for connection fith server. see #1969 2006-11-25 11:50:31 +00:00
junglecow
fc88ae004a When registering a new account, instead of using on_connect_success handler, register disconnect handler with the connection as soon as we create it. Hacky, but works. Fixes #2671. 2006-11-24 14:48:04 +00:00
Stefan Bethge
1e6bbfe48f fix #2699 (readd vcard dummies) 2006-11-23 15:17:24 +00:00
Yann Leboulanger
4251bb6d2b [stlman] fix invisible code. fixes #2695. Thanks 2006-11-22 23:27:57 +00:00