src/protocols/msn/notification.c

changeset 11183
be87fe695c93
parent 11164
4396374c0cd9
child 11321
a93121c0ea16
equal deleted inserted replaced
11182:9cb28f52220f 11183:be87fe695c93
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++)
917 GaimAccount *account; 917 GaimAccount *account;
918 const char *rru; 918 const char *rru;
919 const char *url; 919 const char *url;
920 GaimCipher *cipher; 920 GaimCipher *cipher;
921 GaimCipherContext *context; 921 GaimCipherContext *context;
922 guint8 digest[16]; 922 guchar digest[16];
923 FILE *fd; 923 FILE *fd;
924 char *buf; 924 char *buf;
925 char buf2[3]; 925 char buf2[3];
926 char sendbuf[64]; 926 char sendbuf[64];
927 int i; 927 int 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

mercurial