| 403 MsnTransaction *trans; |
403 MsnTransaction *trans; |
| 404 char buf[33]; |
404 char buf[33]; |
| 405 const char *challenge_resp; |
405 const char *challenge_resp; |
| 406 GaimCipher *cipher; |
406 GaimCipher *cipher; |
| 407 GaimCipherContext *context; |
407 GaimCipherContext *context; |
| 408 guint8 digest[16]; |
408 guchar digest[16]; |
| 409 int i; |
409 int i; |
| 410 |
410 |
| 411 cipher = gaim_ciphers_find_cipher("md5"); |
411 cipher = gaim_ciphers_find_cipher("md5"); |
| 412 context = gaim_cipher_context_new(cipher, NULL); |
412 context = gaim_cipher_context_new(cipher, NULL); |
| 413 |
413 |
| 414 gaim_cipher_context_append(context, (const guint8 *)cmd->params[1], |
414 gaim_cipher_context_append(context, (const guchar *)cmd->params[1], |
| 415 strlen(cmd->params[1])); |
415 strlen(cmd->params[1])); |
| 416 |
416 |
| 417 challenge_resp = "VT6PX?UQTM4WM%YR"; |
417 challenge_resp = "VT6PX?UQTM4WM%YR"; |
| 418 |
418 |
| 419 gaim_cipher_context_append(context, (const guint8 *)challenge_resp, |
419 gaim_cipher_context_append(context, (const guchar *)challenge_resp, |
| 420 strlen(challenge_resp)); |
420 strlen(challenge_resp)); |
| 421 gaim_cipher_context_digest(context, sizeof(digest), digest, NULL); |
421 gaim_cipher_context_digest(context, sizeof(digest), digest, NULL); |
| 422 gaim_cipher_context_destroy(context); |
422 gaim_cipher_context_destroy(context); |
| 423 |
423 |
| 424 for (i = 0; i < 16; i++) |
424 for (i = 0; i < 16; i++) |
| 938 gaim_connection_get_password(account->gc)); |
938 gaim_connection_get_password(account->gc)); |
| 939 |
939 |
| 940 cipher = gaim_ciphers_find_cipher("md5"); |
940 cipher = gaim_ciphers_find_cipher("md5"); |
| 941 context = gaim_cipher_context_new(cipher, NULL); |
941 context = gaim_cipher_context_new(cipher, NULL); |
| 942 |
942 |
| 943 gaim_cipher_context_append(context, (const guint8 *)buf, strlen(buf)); |
943 gaim_cipher_context_append(context, (const guchar *)buf, strlen(buf)); |
| 944 gaim_cipher_context_digest(context, sizeof(digest), digest, NULL); |
944 gaim_cipher_context_digest(context, sizeof(digest), digest, NULL); |
| 945 gaim_cipher_context_destroy(context); |
945 gaim_cipher_context_destroy(context); |
| 946 |
946 |
| 947 g_free(buf); |
947 g_free(buf); |
| 948 |
948 |