diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-09-22 14:04:35 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-09-22 14:04:35 +0200 |
commit | 59974884ba72d6e8fa008d07ee93bd228d30a99c (patch) | |
tree | 03ed914a6390a8e3e7fc48fcd6effd567a1ef390 /protocols/jabber/jabber.h | |
parent | deff0406d501264e1d91203ea8f91411a150e35f (diff) |
Basic SASL (PLAIN only ATM) authentication code. Doesn't log in completely
yet.
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r-- | protocols/jabber/jabber.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h index 775cd787..03fe57a7 100644 --- a/protocols/jabber/jabber.h +++ b/protocols/jabber/jabber.h @@ -31,8 +31,10 @@ typedef enum { - JFLAG_STREAM_STARTED = 1, - JFLAG_AUTHENTICATED = 2, + JFLAG_STREAM_STARTED = 1, /* Set when we detected the beginning of the stream and want to do auth. */ + JFLAG_AUTHENTICATED = 2, /* Set when we're successfully authenticatd. */ + JFLAG_STREAM_RESTART = 4, /* Set when we want to restart the stream (after SASL or TLS). */ + JFLAG_SUPPORTS_TLS = 8, /* Set when there's <starttls/> in <stream:features>. */ } jabber_flags_t; /* iq.c */ @@ -59,6 +61,11 @@ gboolean jabber_connected_plain( gpointer data, gint source, b_input_condition c gboolean jabber_start_stream( struct gaim_connection *gc ); void jabber_end_stream( struct gaim_connection *gc ); +/* sasl.c */ +xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data ); +xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data ); +xt_status sasl_pkt_result( struct xt_node *node, gpointer data ); + struct jabber_data { struct gaim_connection *gc; |