summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/crypto/sha1/ChangeLog4
-rw-r--r--src/lib/crypto/sha1/shs.c2
-rw-r--r--src/lib/crypto/sha1/shs.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/crypto/sha1/ChangeLog b/src/lib/crypto/sha1/ChangeLog
index 88469909b..048a3fd8f 100644
--- a/src/lib/crypto/sha1/ChangeLog
+++ b/src/lib/crypto/sha1/ChangeLog
@@ -1,3 +1,7 @@
+2001-12-05 Ezra Peisach <epeisach@mit.edu>
+
+ * shs.c, shs.h (shsUpdate): Declare second argument as const.
+
2001-07-16 Ken Raeburn <raeburn@mit.edu>
* t_shs3.c: New test file from Marcus Watts.
diff --git a/src/lib/crypto/sha1/shs.c b/src/lib/crypto/sha1/shs.c
index 873f8784e..423e981fc 100644
--- a/src/lib/crypto/sha1/shs.c
+++ b/src/lib/crypto/sha1/shs.c
@@ -217,7 +217,7 @@ void SHSTransform(digest, data)
void shsUpdate(shsInfo, buffer, count)
SHS_INFO *shsInfo;
- SHS_BYTE *buffer;
+ const SHS_BYTE *buffer;
int count;
{
SHS_LONG tmp;
diff --git a/src/lib/crypto/sha1/shs.h b/src/lib/crypto/sha1/shs.h
index 6bf0c2458..ebbdc4a9c 100644
--- a/src/lib/crypto/sha1/shs.h
+++ b/src/lib/crypto/sha1/shs.h
@@ -27,7 +27,7 @@ typedef struct {
/* Message digest functions (shs.c) */
void shsInit(SHS_INFO *shsInfo);
-void shsUpdate(SHS_INFO *shsInfo, SHS_BYTE *buffer, int count);
+void shsUpdate(SHS_INFO *shsInfo, const SHS_BYTE *buffer, int count);
void shsFinal(SHS_INFO *shsInfo);