packages/net/lldpd: fix typo in makefile
[openwrt/svn-archive/archive.git] / libs / cyassl / patches / 001-fix_buffer_overflow.patch
1 diff -pruN cyassl-0.9.9.orig/ctaocrypt/include/hmac.h cyassl-0.9.9/ctaocrypt/include/hmac.h
2 --- cyassl-0.9.9.orig/ctaocrypt/include/hmac.h 2008-12-11 16:27:12.490140301 +0100
3 +++ cyassl-0.9.9/ctaocrypt/include/hmac.h 2008-12-11 16:27:50.318874180 +0100
4 @@ -61,7 +61,7 @@ typedef struct Hmac {
5 Hash hash;
6 word32 ipad[HMAC_BLOCK_SIZE / sizeof(word32)]; /* same block size all*/
7 word32 opad[HMAC_BLOCK_SIZE / sizeof(word32)];
8 - word32 innerHash[SHA_DIGEST_SIZE / sizeof(word32)]; /* max size */
9 + word32 innerHash[SHA256_DIGEST_SIZE / sizeof(word32)]; /* max size */
10 byte macType; /* md5 sha or sha256 */
11 byte innerHashKeyed; /* keyed flag */
12 } Hmac;