gossip r2822 - in trunk: . libgossip



Author: mr
Date: Sun Jul  6 22:07:04 2008
New Revision: 2822
URL: http://svn.gnome.org/viewvc/gossip?rev=2822&view=rev

Log:
	* libgossip/gossip-jabber.c: (gossip_jabber_new_account): Make the
	default port 5222 when creating an account. This is because we now
	use STARTTLS and set up secure communications on that port with
	newer loudmouth versions. Port 5223 is only needed for legacy SSL
	connections which are not enabled by default.


Modified:
   trunk/ChangeLog
   trunk/libgossip/gossip-jabber.c

Modified: trunk/libgossip/gossip-jabber.c
==============================================================================
--- trunk/libgossip/gossip-jabber.c	(original)
+++ trunk/libgossip/gossip-jabber.c	Sun Jul  6 22:07:04 2008
@@ -518,13 +518,15 @@
 {
 	GossipAccount *account;
 	const gchar   *example_id;
-	guint          port;
 	GossipJID     *jid;
 	const gchar   *computer_name;
 
+	/* Note, we now assume the default non-ssl port since we use
+	 * STARTTLS once connected on the normal 5222 port. 5223 is
+	 * used for legacy old ssl support.
+	 */
 	example_id = gossip_jid_get_example_string ();
 	jid = gossip_jid_new (example_id);
-	port = gossip_jabber_get_default_port (gossip_jabber_is_ssl_supported ());
 	computer_name = g_get_host_name ();
 	
 	if (!computer_name) {
@@ -536,8 +538,10 @@
 				"name", _("new account"),
 				"server", gossip_jid_get_part_host (jid),
 				"resource", computer_name,
-				"port", port, 
-				"use_ssl", gossip_jabber_is_ssl_supported (),
+				"port", gossip_jabber_get_default_port (FALSE), 
+				"use-ssl", gossip_jabber_is_ssl_supported (),
+				"force-old-ssl", FALSE,
+				"ignore-ssl-errors", TRUE,
 				NULL);
 
 	g_object_unref (jid);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]