From 3109dc13f177bf810224a45470fa4be9467e2e3f Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 5 Dec 2001 23:14:30 +0000 Subject: [PATCH] * shs.c, shs.h (shsUpdate): Declare second argument as const git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14046 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/sha1/ChangeLog | 4 ++++ src/lib/crypto/sha1/shs.c | 2 +- src/lib/crypto/sha1/shs.h | 2 +- 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 + + * shs.c, shs.h (shsUpdate): Declare second argument as const. + 2001-07-16 Ken Raeburn * 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); -- 2.26.2