* shs.c, shs.h (shsUpdate): Declare second argument as const
authorEzra Peisach <epeisach@mit.edu>
Wed, 5 Dec 2001 23:14:30 +0000 (23:14 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 5 Dec 2001 23:14:30 +0000 (23:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14046 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/sha1/ChangeLog
src/lib/crypto/sha1/shs.c
src/lib/crypto/sha1/shs.h

index 88469909bb299e9490d3d7de732164d5807f4033..048a3fd8f3a0014ade7744cc1e846af6e0f54127 100644 (file)
@@ -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.
index 873f8784e99a449c03999f30daecaa53e038b55b..423e981fcf6e4745cd75ab1eb175bdd00afb9546 100644 (file)
@@ -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;
index 6bf0c24582fd999af2cfa3a7693ddafcd5f2dc58..ebbdc4a9cfebf9bd1929eebe413b25dbfa891b64 100644 (file)
@@ -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);