Changes in protocols/jabber/sasl.c [3b6eadc:84b045d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/sasl.c
r3b6eadc r84b045d 89 89 strcpy( s + 1, jd->username ); 90 90 strcpy( s + 2 + strlen( jd->username ), ic->acc->pass ); 91 reply->text = base64_encode( (unsigned char *)s, len );91 reply->text = base64_encode( s, len ); 92 92 reply->text_len = strlen( reply->text ); 93 93 g_free( s ); … … 185 185 struct jabber_data *jd = ic->proto_data; 186 186 struct xt_node *reply = NULL; 187 char *nonce = NULL, *realm = NULL, *cnonce = NULL; 188 unsigned char cnonce_bin[30]; 187 char *nonce = NULL, *realm = NULL, *cnonce = NULL, cnonce_bin[30]; 189 188 char *digest_uri = NULL; 190 189 char *dec = NULL; … … 217 216 realm = g_strdup( jd->server ); 218 217 219 random_bytes( cnonce_bin, sizeof( cnonce_bin ) );218 random_bytes( (unsigned char *) cnonce_bin, sizeof( cnonce_bin ) ); 220 219 cnonce = base64_encode( cnonce_bin, sizeof( cnonce_bin ) ); 221 220 digest_uri = g_strdup_printf( "%s/%s", "xmpp", jd->server );
Note: See TracChangeset
for help on using the changeset viewer.