comparison src/protocols/simple/simple.c @ 13656:d0fc90e56b5e

[gaim-migrate @ 16058] fixed CID 106 committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Tue, 18 Apr 2006 07:45:55 +0000
parents bbab6b311195
children 299536c4caf1
comparison
equal deleted inserted replaced
13655:bbab6b311195 13656:d0fc90e56b5e
377 i++; 377 i++;
378 } 378 }
379 g_strfreev(parts); 379 g_strfreev(parts);
380 380
381 gaim_debug(GAIM_DEBUG_MISC, "simple", "nonce: %s realm: %s ", auth->nonce ? auth->nonce : "(null)", auth->realm ? auth->realm : "(null)"); 381 gaim_debug(GAIM_DEBUG_MISC, "simple", "nonce: %s realm: %s ", auth->nonce ? auth->nonce : "(null)", auth->realm ? auth->realm : "(null)");
382 382 if(auth->realm) {
383 auth->digest_session_key = gaim_cipher_http_digest_calculate_session_key( 383 auth->digest_session_key = gaim_cipher_http_digest_calculate_session_key(
384 "md5", authuser, auth->realm, sip->password, auth->nonce, NULL); 384 "md5", authuser, auth->realm, sip->password, auth->nonce, NULL);
385 385
386 auth->nc = 1; 386 auth->nc = 1;
387 }
387 } 388 }
388 389
389 static void simple_canwrite_cb(gpointer data, gint source, GaimInputCondition cond) { 390 static void simple_canwrite_cb(gpointer data, gint source, GaimInputCondition cond) {
390 GaimConnection *gc = data; 391 GaimConnection *gc = data;
391 struct simple_account_data *sip = gc->proto_data; 392 struct simple_account_data *sip = gc->proto_data;