Mercurial > pidgin.yaz
comparison src/protocols/msn/notification.c @ 11164:93663df88ec4
[gaim-migrate @ 13265]
Get rid of the last of the gcc4 warnings in MSN. Rooaarrrrr
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 29 Jul 2005 01:38:12 +0000 |
parents | a60704081c3e |
children | 8dca96cbcd64 |
comparison
equal
deleted
inserted
replaced
11163:4cf257598691 | 11164:93663df88ec4 |
---|---|
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, cmd->params[1], | 414 gaim_cipher_context_append(context, (const guint8 *)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, challenge_resp, | 419 gaim_cipher_context_append(context, (const guint8 *)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++) |
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 guint8 digest[16]; |
923 FILE *fd; | 923 FILE *fd; |
924 char buf[2048]; | 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; |
928 | 928 |
929 session = cmdproc->session; | 929 session = cmdproc->session; |
930 account = session->account; | 930 account = session->account; |
931 | 931 |
932 rru = cmd->params[1]; | 932 rru = cmd->params[1]; |
933 url = cmd->params[2]; | 933 url = cmd->params[2]; |
934 | 934 |
935 g_snprintf(buf, sizeof(buf), "%s%lu%s", | 935 buf = g_strdup_printf("%s%lu%s", |
936 session->passport_info.mspauth, | 936 session->passport_info.mspauth, |
937 time(NULL) - session->passport_info.sl, | 937 time(NULL) - session->passport_info.sl, |
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, buf, strlen(buf)); | 943 gaim_cipher_context_append(context, (const guint8 *)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 | |
947 g_free(buf); | |
946 | 948 |
947 memset(sendbuf, 0, sizeof(sendbuf)); | 949 memset(sendbuf, 0, sizeof(sendbuf)); |
948 | 950 |
949 for (i = 0; i < 16; i++) | 951 for (i = 0; i < 16; i++) |
950 { | 952 { |