2008-01-31 Simon Josefsson <simon@josefsson.org>
+ * lib/sha1.c (set_uint32): Mark function as static.
+
+2008-01-31 Simon Josefsson <simon@josefsson.org>
+
+ md2: clarify comments to say that alignment is not required.
* lib/md2.h: Remove warning about alignment in comment.
* lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
never been required.
/* sha1.c - Functions to compute SHA1 message digest of files or
memory blocks according to the NIST specification FIPS-180-1.
- Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006 Free Software
+ Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
/* Copy the 4 byte value from v into the memory location pointed to by *cp,
If your architecture allows unaligned access this is equivalent to
* (uint32_t *) cp = v */
-void
+static void
set_uint32 (char *cp, uint32_t v)
{
memcpy (cp, &v, 4);