[ekiga] loudmouth(XMPP): force SSL and STARTTLS
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] loudmouth(XMPP): force SSL and STARTTLS
- Date: Tue, 5 Jun 2012 14:16:44 +0000 (UTC)
commit fa542310de786937dbcfde54cf17c3962fc35943
Author: Julien Puydt <jpuydt free fr>
Date: Tue Jun 5 16:11:37 2012 +0200
loudmouth(XMPP): force SSL and STARTTLS
plugins/loudmouth/loudmouth-account.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/loudmouth/loudmouth-account.cpp b/plugins/loudmouth/loudmouth-account.cpp
index de7fc1b..9d62c95 100644
--- a/plugins/loudmouth/loudmouth-account.cpp
+++ b/plugins/loudmouth/loudmouth-account.cpp
@@ -214,6 +214,12 @@ LM::Account::enable ()
}
lm_connection_set_server (connection, (const char*)server);
lm_connection_set_port (connection, port);
+
+ ssl = lm_ssl_new (NULL, NULL, NULL, NULL);
+ lm_ssl_use_starttls (ssl, TRUE, TRUE);
+ lm_connection_set_ssl(connection, ssl);
+ lm_ssl_unref (ssl);
+
if ( !lm_connection_open (connection,
(LmResultFunction)on_connection_opened_c,
this, NULL, &error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]