diff libpurple/protocols/gg/gg.c @ 31901:66b30e47caec

Gadu-Gadu: Add encrypted (SSL) connection support for GNUTLS users. Fixes #13613. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author tomkiewicz@o2.pl
date Thu, 07 Apr 2011 01:49:57 +0000
parents 7db33b356d4a
children 277b7f1d6214
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c	Thu Apr 07 01:29:17 2011 +0000
+++ b/libpurple/protocols/gg/gg.c	Thu Apr 07 01:49:57 2011 +0000
@@ -2041,7 +2041,12 @@
 
 	glp->async = 1;
 	glp->status = ggp_to_gg_status(status, &glp->status_descr);
+#if defined(USE_GNUTLS) || !defined(USE_INTERNAL_LIBGADU)
+	glp->tls = 1;
+#else
 	glp->tls = 0;
+#endif
+	purple_debug_info("gg", "TLS enabled: %d\n", glp->tls);
 
 	if (!info->status_broadcasting)
 		glp->status = glp->status|GG_STATUS_FRIENDS_MASK;