While working on something else, I stumbled over this. Obviously no one\ 1
authorBernd Petrovitsch <bernd@firmix.at>
Fri, 2 Nov 2007 15:51:46 +0000 (15:51 +0000)
committerBernd Petrovitsch <bernd@firmix.at>
Fri, 2 Nov 2007 15:51:46 +0000 (15:51 +0000)
commit955de8c5020a10ce1cb3ee44cc9e51f9df97dd54
tree1bef3038e2b8cc03fb0c5105981c0e8c57845f1b
parente2b23ec2f69e056b410c27f5e724961fbbe7d615
While working on something else, I stumbled over this. Obviously no one\ 1
ever used the "secure" plugin on 64bit hardware:
- fixed lib/secure/src/md5.h: This was broken as it had
  "typedef unsigned long int UINT4;". "unsigned long int" is 8 bytes on
  x86_64.
  We are using now the standardized types from <inttypes.h>.
- fixed warnings and improved lib/secure/src/md5.c:
  * we are using memcpy() and memset() instead of the open-coded loops as
    suggested
  * const'ified
  * added function prototypes for static functions
  * moved static functions to the top so that their declaration is before
    their use to allow gcc to inline if only used once.
  It remains ugly - God knows why there are that so many useless
  type-casts.
CHANGELOG
lib/secure/src/md5.c
lib/secure/src/md5.h