Mercurial > gnulib
changeset 27042:71e9400e85ec
* gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
* md4.c (md4_process_block): Remove unused variable.
* rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
parentheses for clarity.
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
---|---|
date | Fri, 22 Sep 2006 16:54:11 +0000 |
parents | d2caa9db1c8c |
children | ee3834541407 |
files | lib/ChangeLog lib/gc-gnulib.c lib/md4.c lib/rijndael-api-fst.c |
diffstat | 4 files changed, 13 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog Fri Sep 22 15:43:18 2006 +0000 +++ b/lib/ChangeLog Fri Sep 22 16:54:11 2006 +0000 @@ -1,3 +1,10 @@ +2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> + + * gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1. + * md4.c (md4_process_block): Remove unused variable. + * rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests + parentheses for clarity. + 2006-09-20 Paul Eggert <eggert@cs.ucla.edu> Import this patch from libc:
--- a/lib/gc-gnulib.c Fri Sep 22 15:43:18 2006 +0000 +++ b/lib/gc-gnulib.c Fri Sep 22 16:54:11 2006 +0000 @@ -52,7 +52,7 @@ #ifdef GC_USE_SHA1 # include "sha1.h" #endif -#ifdef GC_USE_HMAC_MD5 +#if defined(GC_USE_HMAC_MD5) || defined(GC_USE_HMAC_SHA1) # include "hmac.h" #endif
--- a/lib/md4.c Fri Sep 22 15:43:18 2006 +0000 +++ b/lib/md4.c Fri Sep 22 16:54:11 2006 +0000 @@ -311,7 +311,6 @@ the loop. */ while (words < endp) { - uint32_t tm; int t; for (t = 0; t < 16; t++) {
--- a/lib/rijndael-api-fst.c Fri Sep 22 15:43:18 2006 +0000 +++ b/lib/rijndael-api-fst.c Fri Sep 22 16:54:11 2006 +0000 @@ -1,5 +1,5 @@ /* rijndael-api-fst.c --- Rijndael cipher implementation. - * Copyright (C) 2005 Free Software Foundation, Inc. + * Copyright (C) 2005, 2006 Free Software Foundation, Inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published @@ -361,10 +361,10 @@ size_t i, k, t, numBlocks; char block[16], *iv; - if (cipher == NULL || - key == NULL || - cipher->mode != RIJNDAEL_MODE_CFB1 - && key->direction == RIJNDAEL_DIR_ENCRYPT) + if (cipher == NULL + || key == NULL + || (cipher->mode != RIJNDAEL_MODE_CFB1 + && key->direction == RIJNDAEL_DIR_ENCRYPT)) { return RIJNDAEL_BAD_CIPHER_STATE; }