Mercurial > pidgin
annotate src/sha.h @ 9191:06b28fb24300
[gaim-migrate @ 9986]
" This patch was inspired by Robert Story's previous
timestamp patch (#944943). That was rejected because
of a timing inconsistency issue mentioned by Faceprint.
This patch disables timestamps in a given conversation
when no messages have been displayed since the last
timestamp. When a new message is about to be displayed
in a disabled timestamp conversation, a timestamp is
inserted first to maintain timing consistency. Then
the timestamp display is reenabled and the IM message
is printed.
This patch also handles a bug in the original timestamp
plugin. Previously, when the timestamp interval was
modified in the preferences, no current open
conversations are affected. I have modified it so that
all open conversations use the new interval. I would
have sent this as a separate patch, but this is my
first patch and didn't want to mess it up :)." --Eddie Sohn
i liked the original patch and was somewhat disappointed that it didn't get
fixed to address Nathan's concern, so i'm happy to merge this one in.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 06 Jun 2004 02:08:57 +0000 |
parents | 00138e366ef8 |
children | db62420a53a2 |
rev | line source |
---|---|
8907 | 1 /* |
2 * The contents of this file are subject to the Mozilla Public | |
3 * License Version 1.1 (the "License"); you may not use this file | |
4 * except in compliance with the License. You may obtain a copy of | |
5 * the License at http://www.mozilla.org/MPL/ | |
6 * | |
7 * Software distributed under the License is distributed on an "AS | |
8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | |
9 * implied. See the License for the specific language governing | |
10 * rights and limitations under the License. | |
11 * | |
12 * The Original Code is SHA 180-1 Reference Implementation (Compact version) | |
13 * | |
14 * The Initial Developer of the Original Code is Paul Kocher of | |
15 * Cryptography Research. Portions created by Paul Kocher are | |
16 * Copyright (C) 1995-9 by Cryptography Research, Inc. All | |
17 * Rights Reserved. | |
18 * | |
19 * Contributor(s): | |
20 * | |
21 */ | |
22 #ifndef _SHA_H_ | |
23 #define _SHA_H_ | |
24 | |
25 #include <glib.h> | |
26 | |
27 typedef struct { | |
28 guint32 H[5]; | |
29 guint32 W[80]; | |
30 int lenW; | |
31 guint32 sizeHi; | |
32 guint32 sizeLo; | |
33 } SHA_CTX; | |
34 | |
6987 | 35 int strprintsha(char *dest, int *hashval); |
36 void shaInit(SHA_CTX *ctx); | |
37 void shaUpdate(SHA_CTX *ctx, unsigned char *dataIn, int len); | |
38 void shaFinal(SHA_CTX *ctx, unsigned char hashout[20]); | |
39 void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]); | |
8907 | 40 |
41 #endif |