Mercurial > pidgin
diff src/protocols/msn/notification.c @ 11183:8dca96cbcd64
[gaim-migrate @ 13295]
I changed the cipher API to use guchar instead of guint8
This seems to be what gtk/glib uses for random bits of data
I don't know what got into me
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 03 Aug 2005 02:57:00 +0000 |
| parents | 93663df88ec4 |
| children | 95fa774d216d |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Wed Aug 03 01:39:41 2005 +0000 +++ b/src/protocols/msn/notification.c Wed Aug 03 02:57:00 2005 +0000 @@ -405,18 +405,18 @@ const char *challenge_resp; GaimCipher *cipher; GaimCipherContext *context; - guint8 digest[16]; + guchar digest[16]; int i; cipher = gaim_ciphers_find_cipher("md5"); context = gaim_cipher_context_new(cipher, NULL); - gaim_cipher_context_append(context, (const guint8 *)cmd->params[1], + gaim_cipher_context_append(context, (const guchar *)cmd->params[1], strlen(cmd->params[1])); challenge_resp = "VT6PX?UQTM4WM%YR"; - gaim_cipher_context_append(context, (const guint8 *)challenge_resp, + gaim_cipher_context_append(context, (const guchar *)challenge_resp, strlen(challenge_resp)); gaim_cipher_context_digest(context, sizeof(digest), digest, NULL); gaim_cipher_context_destroy(context); @@ -919,7 +919,7 @@ const char *url; GaimCipher *cipher; GaimCipherContext *context; - guint8 digest[16]; + guchar digest[16]; FILE *fd; char *buf; char buf2[3]; @@ -940,7 +940,7 @@ cipher = gaim_ciphers_find_cipher("md5"); context = gaim_cipher_context_new(cipher, NULL); - gaim_cipher_context_append(context, (const guint8 *)buf, strlen(buf)); + gaim_cipher_context_append(context, (const guchar *)buf, strlen(buf)); gaim_cipher_context_digest(context, sizeof(digest), digest, NULL); gaim_cipher_context_destroy(context);
