summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 710c97d)
raw | patch | inline | side by side (parent: 710c97d)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 1 Nov 2005 18:56:03 +0000 (10:56 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 1 Nov 2005 22:05:12 +0000 (14:05 -0800) |
Among the three of our own implementations, only this one lacked
"const" from the second argument.
Signed-off-by: Junio C Hamano <junkio@cox.net>
"const" from the second argument.
Signed-off-by: Junio C Hamano <junkio@cox.net>
mozilla-sha1/sha1.c | patch | blob | history | |
mozilla-sha1/sha1.h | patch | blob | history |
diff --git a/mozilla-sha1/sha1.c b/mozilla-sha1/sha1.c
index 7f6fc05e06e30b2f7b3eda6015043f5ebcfd34c1..847531d19f88e420ad68f95f11ab2f1f77876d08 100644 (file)
--- a/mozilla-sha1/sha1.c
+++ b/mozilla-sha1/sha1.c
}
-void SHA1_Update(SHA_CTX *ctx, void *_dataIn, int len) {
- unsigned char *dataIn = _dataIn;
+void SHA1_Update(SHA_CTX *ctx, const void *_dataIn, int len) {
+ const unsigned char *dataIn = _dataIn;
int i;
/* Read the data into W and process blocks as they get full
diff --git a/mozilla-sha1/sha1.h b/mozilla-sha1/sha1.h
index f5decbf43b259232d3ec4a665712df61f946a7f5..5d82afa3bdd21a2855c569a73cf3277b5c6a41bc 100644 (file)
--- a/mozilla-sha1/sha1.h
+++ b/mozilla-sha1/sha1.h
} SHA_CTX;
void SHA1_Init(SHA_CTX *ctx);
-void SHA1_Update(SHA_CTX *ctx, void *dataIn, int len);
+void SHA1_Update(SHA_CTX *ctx, const void *dataIn, int len);
void SHA1_Final(unsigned char hashout[20], SHA_CTX *ctx);