comparison src/proxy.c @ 10687:b256ce6b85b8

[gaim-migrate @ 12235] grim says this is really fixed this time. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Sat, 12 Mar 2005 01:10:37 +0000
parents 72a5babfa8b4
children b221bc891e7a
comparison
equal deleted inserted replaced
10686:212946f774c0 10687:b256ce6b85b8
1375 1375
1376 pwinput=(char *)passwd; 1376 pwinput=(char *)passwd;
1377 pwlen=strlen(passwd); 1377 pwlen=strlen(passwd);
1378 if (pwlen>64) { 1378 if (pwlen>64) {
1379 gaim_cipher_context_append(ctx, passwd, strlen(passwd)); 1379 gaim_cipher_context_append(ctx, passwd, strlen(passwd));
1380 gaim_cipher_context_digest(ctx, NULL, md5buf); 1380 gaim_cipher_context_digest(ctx, sizeof(md5buf), md5buf, NULL);
1381 pwinput=(char *)md5buf; 1381 pwinput=(char *)md5buf;
1382 pwlen=16; 1382 pwlen=16;
1383 } 1383 }
1384 1384
1385 memset(Kxoripad,0,sizeof(Kxoripad)); 1385 memset(Kxoripad,0,sizeof(Kxoripad));
1392 } 1392 }
1393 1393
1394 gaim_cipher_context_reset(ctx, NULL); 1394 gaim_cipher_context_reset(ctx, NULL);
1395 gaim_cipher_context_append(ctx, Kxoripad, 64); 1395 gaim_cipher_context_append(ctx, Kxoripad, 64);
1396 gaim_cipher_context_append(ctx, challenge, challen); 1396 gaim_cipher_context_append(ctx, challenge, challen);
1397 gaim_cipher_context_digest(ctx, NULL, Kxoripad); 1397 gaim_cipher_context_digest(ctx, sizeof(Kxoripad), Kxoripad, NULL);
1398 1398
1399 gaim_cipher_context_reset(ctx, NULL); 1399 gaim_cipher_context_reset(ctx, NULL);
1400 gaim_cipher_context_append(ctx, Kxoropad, 64); 1400 gaim_cipher_context_append(ctx, Kxoropad, 64);
1401 gaim_cipher_context_append(ctx, Kxoripad, 16); 1401 gaim_cipher_context_append(ctx, Kxoripad, 16);
1402 gaim_cipher_context_digest(ctx, NULL, response); 1402 gaim_cipher_context_digest(ctx, sizeof(response), response, NULL);
1403 1403
1404 gaim_cipher_context_destroy(ctx); 1404 gaim_cipher_context_destroy(ctx);
1405 } 1405 }
1406 1406
1407 static void 1407 static void