comparison src/protocols/jabber/auth.c @ 7255:e78c6f6e759c

[gaim-migrate @ 7832] random is cooler committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 14 Oct 2003 03:26:11 +0000
parents fae7cfe975fd
children 109817b028a6
comparison
equal deleted inserted replaced
7254:bb0160033e50 7255:e78c6f6e759c
271 char *buf; 271 char *buf;
272 char *cnonce; 272 char *cnonce;
273 char *realm; 273 char *realm;
274 char *nonce; 274 char *nonce;
275 275
276 cnonce = g_strdup_printf("%p%u%p", js, (int)time(NULL), packet); 276 cnonce = g_strdup_printf("%x%u%x", g_random_int(), (int)time(NULL),
277 g_random_int());
277 nonce = g_hash_table_lookup(parts, "nonce"); 278 nonce = g_hash_table_lookup(parts, "nonce");
278 realm = g_hash_table_lookup(parts, "realm"); 279 realm = g_hash_table_lookup(parts, "realm");
279 280
280 a2 = g_strdup_printf("AUTHENTICATE:xmpp/%s", realm); 281 a2 = g_strdup_printf("AUTHENTICATE:xmpp/%s", realm);
281 auth_resp = generate_response_value(js->user, 282 auth_resp = generate_response_value(js->user,