Changeset a8a0b4c for protocols/jabber
- Timestamp:
- 2007-07-14T23:54:18Z (17 years ago)
- Branches:
- master
- Children:
- 2abfbc5
- Parents:
- 1da00b1 (diff), b9e4ab5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/sasl.c
r1da00b1 ra8a0b4c 89 89 strcpy( s + 1, jd->username ); 90 90 strcpy( s + 2 + strlen( jd->username ), ic->acc->pass ); 91 reply->text = base64_encode( s, len );91 reply->text = base64_encode( (unsigned char *)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, cnonce_bin[30]; 187 char *nonce = NULL, *realm = NULL, *cnonce = NULL; 188 unsigned char cnonce_bin[30]; 188 189 char *digest_uri = NULL; 189 190 char *dec = NULL; … … 216 217 realm = g_strdup( jd->server ); 217 218 218 random_bytes( (unsigned char *)cnonce_bin, sizeof( cnonce_bin ) );219 random_bytes( cnonce_bin, sizeof( cnonce_bin ) ); 219 220 cnonce = base64_encode( cnonce_bin, sizeof( cnonce_bin ) ); 220 221 digest_uri = g_strdup_printf( "%s/%s", "xmpp", jd->server );
Note: See TracChangeset
for help on using the changeset viewer.