diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-09-22 20:39:31 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-09-22 20:39:31 +0200 | 
| commit | fe7a55434385fd858453dffdbb425a21f41e3859 (patch) | |
| tree | 31f7d29dd436d59d80d06674c12b98b934ddb467 /protocols/jabber/jabber.h | |
| parent | 8d7429102adf8dce6844f2f3da2723d1f87c6442 (diff) | |
Better detection of successful IQ authentication (using packet caching),
properly working SASL authentication (although only PLAIN so far).
Diffstat (limited to 'protocols/jabber/jabber.h')
| -rw-r--r-- | protocols/jabber/jabber.h | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h index f8b604b0..c2d3867e 100644 --- a/protocols/jabber/jabber.h +++ b/protocols/jabber/jabber.h @@ -34,6 +34,8 @@ typedef enum  	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_WAIT_SESSION = 8,		/* Set if we sent a <session> tag and need a reply before we continue. */ +	JFLAG_WAIT_BIND = 16,		/* ... for <bind> tag. */  } jabber_flags_t;  /* iq.c */ @@ -52,6 +54,8 @@ int presence_send( struct gaim_connection *gc, char *to, char *show, char *statu  char *set_eval_resprio( set_t *set, char *value );  char *set_eval_tls( set_t *set, char *value );  struct xt_node *jabber_make_packet( char *name, char *type, char *to, struct xt_node *children ); +void jabber_cache_packet( struct gaim_connection *gc, struct xt_node *node ); +struct xt_node *jabber_packet_from_cache( struct gaim_connection *gc, char *id );  /* io.c */  int jabber_write_packet( struct gaim_connection *gc, struct xt_node *node ); @@ -81,6 +85,8 @@ struct jabber_data  	char *username;		/* USERNAME@server */  	char *server;		/* username@SERVER -=> server/domain, not hostname */ +	 +	struct xt_node *node_cache;  };  #endif | 
