diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2007-07-07 19:19:28 +0200 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2007-07-07 19:19:28 +0200 | 
| commit | 3b6eadc990664f9929bceb4f7d14498cf672f0d1 (patch) | |
| tree | 6b137c2e78d3c539c87f7a7d9f4299c3dca982bf /protocols/jabber/sasl.c | |
| parent | f7b44f2c094f99f03182485a30d95a029a84f809 (diff) | |
Fix some warnings in storage.c.
Diffstat (limited to 'protocols/jabber/sasl.c')
| -rw-r--r-- | protocols/jabber/sasl.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/protocols/jabber/sasl.c b/protocols/jabber/sasl.c index 69199a8b..6eee37b3 100644 --- a/protocols/jabber/sasl.c +++ b/protocols/jabber/sasl.c @@ -88,7 +88,7 @@ xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data )  		s[0] = 0;  		strcpy( s + 1, jd->username );  		strcpy( s + 2 + strlen( jd->username ), ic->acc->pass ); -		reply->text = base64_encode( s, len ); +		reply->text = base64_encode( (unsigned char *)s, len );  		reply->text_len = strlen( reply->text );  		g_free( s );  	} @@ -184,7 +184,8 @@ xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data )  	struct im_connection *ic = data;  	struct jabber_data *jd = ic->proto_data;  	struct xt_node *reply = NULL; -	char *nonce = NULL, *realm = NULL, *cnonce = NULL, cnonce_bin[30]; +	char *nonce = NULL, *realm = NULL, *cnonce = NULL; +	unsigned char cnonce_bin[30];  	char *digest_uri = NULL;  	char *dec = NULL;  	char *s = NULL; @@ -215,7 +216,7 @@ xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data )  		if( !realm )  			realm = g_strdup( jd->server ); -		random_bytes( (unsigned char *) cnonce_bin, sizeof( cnonce_bin ) ); +		random_bytes( cnonce_bin, sizeof( cnonce_bin ) );  		cnonce = base64_encode( cnonce_bin, sizeof( cnonce_bin ) );  		digest_uri = g_strdup_printf( "%s/%s", "xmpp", jd->server ); | 
