diff libpurple/protocols/jabber/jabber.h @ 29078:8ada06fb65ed

jabber: Factor the SASL auth methods into their own files. This works with and without Cyrus SASL, though there's room for cleanup and de-duplication (some code is now duplicated between auth.c and auth_cyrus.c).
author Paul Aurich <paul@darkrain42.org>
date Sat, 07 Nov 2009 06:10:17 +0000
parents 13e668ef158d
children c1d41b7484ff
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.h	Sat Nov 07 04:41:04 2009 +0000
+++ b/libpurple/protocols/jabber/jabber.h	Sat Nov 07 06:10:17 2009 +0000
@@ -64,6 +64,7 @@
 #include "roomlist.h"
 #include "sslconn.h"
 
+#include "auth.h"
 #include "iq.h"
 #include "jutil.h"
 #include "xmlnode.h"
@@ -104,13 +105,8 @@
 		JABBER_PROTO_0_9,
 		JABBER_PROTO_1_0
 	} protocol_version;
-	enum {
-		JABBER_AUTH_UNKNOWN,
-		JABBER_AUTH_DIGEST_MD5,
-		JABBER_AUTH_PLAIN,
-		JABBER_AUTH_IQ_AUTH,
-		JABBER_AUTH_CYRUS
-	} auth_type;
+
+	JabberSaslMech *auth_mech;
 	char *stream_id;
 	JabberStreamState state;