Mercurial > masqmail-0.2
annotate src/md5/hmac_md5.h @ 179:ec3fe72a3e99
Fixed an important bug with folded headers!
g_strconcat() returns a *copy* of the string, but hdr->value still
pointed to the old header (which probably was a memory leak, too).
If the folded part had been quite small it was likely that the new
string was at the same position as the old one, thus making everything
go well. But if pretty long headers were folded several times it was
likely that the new string was allocated somewhere else in memory,
thus breaking things. In result mails to lots of recipients (folded
header) were frequently only sent to the ones in the first line. Sorry
for the inconvenience.
author | meillo@marmaro.de |
---|---|
date | Fri, 03 Jun 2011 09:52:17 +0200 |
parents | b8c358b2e242 |
children |
rev | line source |
---|---|
164
b8c358b2e242
replaced hmac_md5.c with an own implementation of RFC 2104
meillo@marmaro.de
parents:
10
diff
changeset
|
1 void hmac_md5( |
b8c358b2e242
replaced hmac_md5.c with an own implementation of RFC 2104
meillo@marmaro.de
parents:
10
diff
changeset
|
2 unsigned char* text, /* pointer to the message */ |
b8c358b2e242
replaced hmac_md5.c with an own implementation of RFC 2104
meillo@marmaro.de
parents:
10
diff
changeset
|
3 int textlen, /* length of the message */ |
b8c358b2e242
replaced hmac_md5.c with an own implementation of RFC 2104
meillo@marmaro.de
parents:
10
diff
changeset
|
4 unsigned char* key, /* pointer to the authentication key */ |
b8c358b2e242
replaced hmac_md5.c with an own implementation of RFC 2104
meillo@marmaro.de
parents:
10
diff
changeset
|
5 int keylen, /* length of the key */ |
b8c358b2e242
replaced hmac_md5.c with an own implementation of RFC 2104
meillo@marmaro.de
parents:
10
diff
changeset
|
6 unsigned char* digest /* pointer to allocated memory to store the computed HMAC */ |
b8c358b2e242
replaced hmac_md5.c with an own implementation of RFC 2104
meillo@marmaro.de
parents:
10
diff
changeset
|
7 ); |