Mercurial > pidgin
view src/sha.h @ 7469:603a58cd23dc
[gaim-migrate @ 8082]
This should fix the problem where some MSN users in the buddy list were
showing the offline emblem, indicating that gaim and the server disagree as
to whether or not the buddy should be there. That icon was for testing
purposes, and should never have been seen by a user. The problem was that
in the code, we were looking for a list of all buddies, and would add new
ones if not found. The problem was that we'd get duplicates, as some would
be in foo@bar.com form, and some in FOO@bar.com form, or mixed-case, or
whatever. Now, our msn_normalize() converts a string to lowercase first.
We'll see how well this works, but it fixed the problem here.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 10 Nov 2003 22:13:18 +0000 |
parents | 0f6673c1ae38 |
children | 00138e366ef8 |
line wrap: on
line source
#if (SIZEOF_INT == 4) typedef unsigned int uint32; #elif (SIZEOF_SHORT == 4) typedef unsigned short uint32; #else typedef unsigned int uint32; #endif /* HAVEUINT32 */ int strprintsha(char *dest, int *hashval); typedef struct { unsigned long H[5]; unsigned long W[80]; int lenW; unsigned long sizeHi,sizeLo; } SHA_CTX; void shaInit(SHA_CTX *ctx); void shaUpdate(SHA_CTX *ctx, unsigned char *dataIn, int len); void shaFinal(SHA_CTX *ctx, unsigned char hashout[20]); void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]);