diff libpurple/protocols/jabber/jabber.h @ 26354:fcee93c74230

BOSH: For authentication purposes, HTTPS is equivalent to a secured JabberStream. Since we always require the connection from CM to server to be secure, allow BOSH+HTTPS to pass 'Require SSL/TLS'.
author Paul Aurich <paul@darkrain42.org>
date Mon, 23 Mar 2009 00:38:20 +0000
parents c4fd9222dda1
children 882748e27f9d
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.h	Sun Mar 22 23:44:31 2009 +0000
+++ b/libpurple/protocols/jabber/jabber.h	Mon Mar 23 00:38:20 2009 +0000
@@ -313,6 +313,13 @@
  */
 void jabber_add_identity(const gchar *category, const gchar *type, const gchar *lang, const gchar *name);
 
+/**
+ * Returns true if this connection is over a secure (SSL) stream. Use this
+ * instead of checking js->gsc because BOSH stores its PurpleSslConnection
+ * members in its own data structure.
+ */
+gboolean jabber_stream_is_ssl(JabberStream *js);
+
 /** PRPL functions */
 const char *jabber_list_icon(PurpleAccount *a, PurpleBuddy *b);
 const char* jabber_list_emblem(PurpleBuddy *b);