aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl_gnutls.c
Commit message (Collapse)AuthorAgeLines
* Use proxy_disconnect() in http, ssl, jabber, oscardequis2015-10-26-1/+1
| | | | | | | | | | Twitter and MSN are all HTTP/SSL, so they don't need it either. The out of tree facebook and steam plugins are also covered by the HTTP/SSL changes. Yahoo is written in a weird way and doesn't seem to need it (it seems it doesn't immediately stop connections when you tell it to logout)
* Fix a bunch of memory leaksdequis2015-03-22-8/+4
| | | | | | | | | | | | | | | | | | | - irc_im.c: - bee_irc_user_msg: strdup leaks when otr swallows messages - bee_irc_user_action_response: GString leak in all ctcp replies - otr.c: - call g_slist_free() on the list of the otr_policy setting - otr_filter_msg_in: call otrl_tlv_free() if "tlvs" are returned - otr_filter_msg_out: don't g_strdup() if the message should be ignored - log_otr_message: g_strdup_vprintf() leaks always - nogaim.c: - imcb_ask_auth/imcb_ask_add: leaks in g_strdup_printf() - imcb_ask_add leaks imcb_ask_cb_data if the user already exists - add imcb_ask_cb_free() to correctly free its data - msn_util.c: add msn_buddy_ask_free(), ditto - storage_xml.c: pass_cr/password if base64_decode or arc_decode fail - ssl_gnutls.c: conn->hostname leak in error conditions, like invalid certs - jabber_util.c: jabber_buddy_by_ext_jid() leaks jid if it's not an ext jid
* Reindent everything to K&R style with tabsIndent2015-02-20-239/+249
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Replace isdigit/isalpha/.../tolower/toupper with glib variantsdequis2015-01-16-1/+1
| | | | | | | | | | | This fixes warnings about passing signed chars to them (apparently they are implemented as macros that do array lookups without checks in some platforms, yay) Specifically: functions=isalnum|isalpha|isdigit|isspace|isxdigit|tolower|toupper sed -ir "s/$functions/g_ascii_&/g" **/*.c
* Fix incorrect Free Software Foundation addressMatej Cepl2015-01-16-2/+2
|
* Prevent some "Source ID ## was not found..." warningsdequis2014-09-27-0/+3
| | | | | | | These appear in glib 2.40, and, well, are pretty much useless. But people complain about them anyway. Probably fixes trac ticket 1151, at least partially.
* ssl_gnutls: Fix some uninitialized memory warningsdequis2014-09-27-2/+2
|
* SSL session caching. You'd think that this makes Twitter stuff faster, exceptWilmer van der Gaast2012-12-24-2/+50
| | | | | Twitter webservers seem to do successful session resumes only sporadically.
* SNI client support in GnuTLS+OpenSSL modules.Wilmer van der Gaast2012-12-24-0/+3
|
* Merge mainline.Wilmer van der Gaast2012-11-17-3/+5
|\
| * SSL fixes from Michal Suchanek.Wilmer van der Gaast2012-10-30-3/+5
| |
* | Tiny cleanup. Fixing some memory leaks (why did I not notice so far thatWilmer van der Gaast2012-11-11-9/+9
|/ | | | | those free()s were commented out?).
* Work-around for what turned out to be a GnuTLS bug (#938). From 3.0.13Wilmer van der Gaast2012-04-10-0/+15
| | | | | | | until 3.0.18 gnutls_record_check_pending() returns non-0 even if the data read so far is an incomplete record and can not yet be read. This can get BitlBee's http_client stuck in a semi-infinite loop.
* A few more SSL fixes merged from AopicieR. This also fixes OpenSSL compileWilmer van der Gaast2012-01-03-9/+3
| | | | | issues (bug #881).
* Keep only one xcred object globally instead of one per connection. WithWilmer van der Gaast2011-12-29-16/+20
| | | | | | verification, this object gets pretty huge and there's no need to have it more than once.
* Fix compatibility with old GnuTLS versions, but with a warning. SeeWilmer van der Gaast2011-12-24-0/+4
| | | | | http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1417 for details.
* Add verify argument to ssl_connect() so HTTPS-based stuff is also secure.Wilmer van der Gaast2011-12-19-1/+3
| | | | | (Think of Twitter, but also MSN/Yahoo! authentication.)
* Move conversion of status codes to status messages into SSL libs.Wilmer van der Gaast2011-12-19-0/+31
|
* Initial merge of tls_verify patch from AopicieR.Wilmer van der Gaast2011-12-19-8/+102
|
* Debug output tweaks: Try to send everything to stderr, and add ifdef toWilmer van der Gaast2011-12-04-2/+4
| | | | | enable printing of all SSL traffic.
* GnuTLS now also needs ssl_pending() implemented. Bug #860.Wilmer van der Gaast2011-11-14-5/+15
|
* Fix GnuTLS >2.12 or so compatibility.Wilmer van der Gaast2011-04-18-0/+1
| | | | | Bug #779 and https://savannah.gnu.org/support/index.php?107660
* Use gcrypt for 3DES encryption (used for new MSN authentication) so weWilmer van der Gaast2010-10-16-4/+28
| | | | | mostly don't need lib/des.c anymore.
* Merging OTR branch. It's more or less a plugin if you enable it, andWilmer van der Gaast2010-10-09-3/+8
|\ | | | | | | | | otherwise a no-op. DO NOT INSTALL THIS ON PUBLIC SERVERS.
| * Merging mainline, which includes a huge msnp13 merge.Wilmer van der Gaast2010-10-02-0/+4
| |\ | | | | | | | | | | | | | | | Not 100% sure about the OpenSSL merge, should double check that but I'm currently offline.
| * \ First step in this merge. Mostly a bzr merge and then a cleanup of conflictsWilmer van der Gaast2010-08-24-3/+8
| |\ \ | | | | | | | | | | | | | | | | and parts I want to/have to redo (because of ui-fix).
| | * \ merge in latest trunkSven Moritz Hallberg2008-07-17-0/+6
| | |\ \
| | * | | explicitly initialize ssl in order to avoid gnutls and libotr fighting over ↵Sven Moritz Hallberg2008-02-17-3/+8
| | | | | | | | | | | | | | | | | | | | the global state of libgcrypt
* | | | | Silencing some (mostly whiny) compiler warnings.Wilmer van der Gaast2010-10-06-2/+2
| |_|_|/ |/| | |
* | | | Some general cleanup, plus fixing a bug in the memberlist parsing code:Wilmer van der Gaast2010-08-21-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | the lists can come in in any order, so parse it *completely* before showing auth requests.
* | | | OpenSSL fixes + debugging.Wilmer van der Gaast2010-08-13-0/+4
|/ / /
* | / Make purple use BitlBee's event handling API. Since the APIs never reallyWilmer van der Gaast2009-10-11-2/+2
| |/ |/| | | | | | | | | | | | | | | | | diverged too much this is fairly transparent. I did rename and redefine GAIM_INPUT_* variables to really make it work without adding another stupid layer in between. One problem left, the new libpurple input API doesn't care about return values. Fixing that in the next CL.
* | Fixed stalling issue with OpenSSL and Jabber (#368).Wilmer van der Gaast2008-03-23-0/+6
|/
* Checking conn->xcred before trying to clean it up since GnuTLS doesn'tWilmer van der Gaast2007-12-12-2/+4
| | | | | seem to check for NULL pointers here. (Closes #257)
* Some changes to get rid of compiler warnings. (And disabling strictWilmer van der Gaast2007-11-22-1/+9
| | | | | aliasing because there are too many warnings about it. :-P)
* Added starttls code to ssl_openssl.c so GnuTLS isn't the only supportedWilmer van der Gaast2006-10-19-2/+0
| | | | | SSL module in this branch anymore.
* No more double free()/crashes when trying to set up an SSL connection toWilmer van der Gaast2006-10-02-6/+18
| | | | | | | a non-SSL server, and better handling of TLS connection setup by initializing the TLS session from a callback function (which guarantees a valid return value from ssl_starttls() before any error callback could be called).
* Added support for SSL- and TLS-connections. Checking of the "tls" userWilmer van der Gaast2006-09-24-15/+30
| | | | | | setting has to be finished, plus an ssl_starttls() function for the other SSL libraries (this code will only compile with GnuTLS for now).
* Moving all generic files to lib/ instead of having some in / and some inWilmer van der Gaast2006-06-25-0/+206
protocols/, and adding RC4 code.