comparison libpurple/protocols/gg/gg.c @ 31450: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
comparison
equal deleted inserted replaced
31449:7db33b356d4a 31450:66b30e47caec
2039 glp->protocol_features = (GG_FEATURE_STATUS80|GG_FEATURE_DND_FFC 2039 glp->protocol_features = (GG_FEATURE_STATUS80|GG_FEATURE_DND_FFC
2040 |GG_FEATURE_TYPING_NOTIFICATION); 2040 |GG_FEATURE_TYPING_NOTIFICATION);
2041 2041
2042 glp->async = 1; 2042 glp->async = 1;
2043 glp->status = ggp_to_gg_status(status, &glp->status_descr); 2043 glp->status = ggp_to_gg_status(status, &glp->status_descr);
2044 #if defined(USE_GNUTLS) || !defined(USE_INTERNAL_LIBGADU)
2045 glp->tls = 1;
2046 #else
2044 glp->tls = 0; 2047 glp->tls = 0;
2048 #endif
2049 purple_debug_info("gg", "TLS enabled: %d\n", glp->tls);
2045 2050
2046 if (!info->status_broadcasting) 2051 if (!info->status_broadcasting)
2047 glp->status = glp->status|GG_STATUS_FRIENDS_MASK; 2052 glp->status = glp->status|GG_STATUS_FRIENDS_MASK;
2048 2053
2049 address = purple_account_get_string(account, "gg_server", ""); 2054 address = purple_account_get_string(account, "gg_server", "");