Mercurial > pidgin
comparison libpurple/protocols/msn/user.c @ 16838:f3874ba27a27
Fix calculating SHA1C for buddy icons
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 03 May 2007 19:55:50 +0000 |
parents | 4fc51a87ce42 |
children | 28251f5bcd6a 522ade544156 |
comparison
equal
deleted
inserted
replaced
16834:eda643d941f1 | 16838:f3874ba27a27 |
---|---|
205 msn_object_get_sha1d(msnobj)); | 205 msn_object_get_sha1d(msnobj)); |
206 | 206 |
207 memset(digest, 0, sizeof(digest)); | 207 memset(digest, 0, sizeof(digest)); |
208 | 208 |
209 purple_cipher_context_reset(ctx, NULL); | 209 purple_cipher_context_reset(ctx, NULL); |
210 purple_cipher_context_append(ctx, data, strlen((char *)data)); | 210 purple_cipher_context_append(ctx, (const guchar *)buf, strlen(buf)); |
211 purple_cipher_context_digest(ctx, sizeof(digest), digest, NULL); | 211 purple_cipher_context_digest(ctx, sizeof(digest), digest, NULL); |
212 purple_cipher_context_destroy(ctx); | 212 purple_cipher_context_destroy(ctx); |
213 g_free(buf); | 213 g_free(buf); |
214 | 214 |
215 base64 = purple_base64_encode(digest, sizeof(digest)); | 215 base64 = purple_base64_encode(digest, sizeof(digest)); |