Mercurial > pidgin
view src/sha.h @ 8444:f6483c880eaf
[gaim-migrate @ 9174]
I still don't think this is the best way to fix this, but it works.
Daniel Larsson caught a nice crash in CVS:
"When joining a chat, Gaim crashes if the first
connection's account (first in the list returned by
gaim_connections_get_all()) is from a plugin not
supporting chat. When building the GUI,
rebuild_joinchat_entries is called with the first
account."
A better fix would be to have gaim_gtk_account_option_menu_new() call
rebuild_joinchat_entires(the first gc that supports chats) automatically
(by way of join_chat_select_account_cb).
Also, someone buy Luke a nice 19" LCD that'll do 1600x1200
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 14 Mar 2004 05:54:29 +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]);