changeset 9663:701f448527a4

Add SHA1_DIGEST_SIZE #define to sha1.h.
author Simon Josefsson <simon@josefsson.org>
date Thu, 31 Jan 2008 13:57:17 +0100
parents 52902e86c444
children 24f06624c1ba
files ChangeLog lib/sha1.h
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-31  Simon Josefsson  <simon@josefsson.org>
+
+	* lib/sha1.h (SHA1_DIGEST_SIZE): Add.
+
 2008-01-31  Jim Meyering  <meyering@redhat.com>
 
 	Prefer "sizeof v" over the equivalent "4".
--- a/lib/sha1.h
+++ b/lib/sha1.h
@@ -23,6 +23,8 @@
 # include <stdio.h>
 # include <stdint.h>
 
+#define SHA1_DIGEST_SIZE 20
+
 /* Structure to save state of computation between the single steps.  */
 struct sha1_ctx
 {