summaryrefslogtreecommitdiff
path: root/src/server-tls-manager.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-03ServerTLSManager: remove useless DEBUG outputHEADmasterWill Thompson1-6/+2
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2011-09-01gabble: add capabilities.h and caps-channel-manager.h as public APIJonny Lamb1-1/+1
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-07-07Move the extra domains to trust from the TLS channel to the managerMarco Barisione1-2/+67
2011-07-07TLSManager: check the connection before the non-interactive verificationMarco Barisione1-13/+15
2011-07-07Add an extra_identify argument to the TLS verification functionsMarco Barisione1-3/+7
Update the Wocky snaphost and adapt the TLS manager to the changes. Now the TLS verification functions have an extra argument for the additional hostnames that we have to consider valid. This is useful, for instance, when using Google apps. Rather than providing a certificate for the JID’s domain part, the server provides a certificate for talk.google.com; if the user has explicitly configured a ‘Google Talk’ account, it's reasonable to accept certificates for this domain.
2011-03-17Fix memory Leaks in GabbleServerTLSManagerStef Walter1-0/+3
https://bugs.freedesktop.org/show_bug.cgi?id=35395
2010-10-13GabbleServerTLSManager: stop making assumptions about how Wocky implements ↵Simon McVittie1-1/+24
its async callback In principle, we're not meant to assume anything about @result - even that it's a GSimpleAsyncResult. (This broke when Wocky changed its source tags from _finish to the more conventional _async.)
2010-09-15Use telepathy-glib for Conference and ServerTLSConnectionSimon McVittie1-5/+5
2010-09-14Add debug output for deconstructionCosimo Cecchi1-0/+4
2010-09-14Clear the async result when the channel is unhandledCosimo Cecchi1-0/+2
2010-09-14TLSManager: don't crash if connection dies before verificationWill Thompson1-1/+14
I received a report of a segfault with the following (trimmed) backtrace: 0 tp_base_channel_constructed () at base-channel.c:604 1 gabble_server_tls_channel_constructed (object=0x1619f8) at server-tls-channel.c:181 [ g_object_new crap ] 5 gabble_server_tls_manager_verify_async ([...]) at server-tls-manager.c:218 6 wocky_tls_handler_verify_async ([...]) at wocky-tls-handler.c:261 7 session_handshake_cb () at wocky-tls-connector.c:302 Line 604 of base-channel.c dereferences the channel's connection for the first time. This is caused by the connection being NULL, which is possible because ServerTLSManager's connection_status_changed_cb() clears it when the connection moves to state DISCONNECTED (to break a reference cycle). So, the crash occurs if you Disconnect() the connection before Wocky gets as far as checking the certificate. So, here we just fail the _verify_async() method call immediately if the priv->connection is NULL. Reviewed-by: Cosimo Cecchi <cosimo.cecchi@collabora.co.uk>
2010-09-13Split ignore-ssl-errors into interactive-sslCosimo Cecchi1-6/+15
So that we can have interactive TLS verification also in the case 'Encryption Required' is False.
2010-09-13Assert that we have a rejection list with at least one element.Cosimo Cecchi1-0/+5
2010-09-13Use right wording in DEBUG messagesCosimo Cecchi1-1/+1
2010-09-13Use tp_clear_boxed to free the Rejection structsCosimo Cecchi1-1/+2
2010-09-13Update Gabble to the new draft APICosimo Cecchi1-10/+16
2010-09-09Don't start interactive verification if ignore-ssl-errors is setCosimo Cecchi1-0/+19
2010-08-25Use tp_base_channel_close() for search and tls channelsWill Thompson1-2/+2
These are the only two TpBaseChannel-based channel types which had their own exported close function which behaves exactly as the vfunc does.
2010-08-24Port ServerTLSChannel to TpBaseChannel.Will Thompson1-6/+0
I have no idea if this works. There are no tests.
2010-08-19Rename LAST_PROPERTY -> NUM_PROPERTIESCosimo Cecchi1-1/+1
2010-08-19Use a macro for the reason switchCosimo Cecchi1-33/+17
This also gets rid of the 'retval' variable.
2010-08-19Remove useless check for !closedCosimo Cecchi1-5/+1
As when the channel is closed, the manager immediately clears the reference it owns.
2010-08-19Chain up to parent's constructed() before running oursCosimo Cecchi1-7/+5
Also, use a temporary variable to save the function pointer, so that we can avoid doing the G_OBJECT_CLASS type-check twice in a row.
2010-08-19Use g_return_if_fail() instead of a debug messageCosimo Cecchi1-5/+3
In case verify_async() is called multiple times, which is wrong.
2010-08-19Own a rerefence to the GabbleConnectionCosimo Cecchi1-5/+27
We will clear our reference either when the connection goes DISCONNECTED or when the channel manager is disposed. In both cases, tp_clear_object() will take care of doing it right for us.
2010-08-19Implement the 'Hostname' propertyCosimo Cecchi1-0/+1
2010-08-10Add GabbleServerTLSManagerCosimo Cecchi1-0/+397