Fix constness of input in mozilla-sha1/sha1.c::SHA1_Update().

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>
This commit is contained in:
Junio C Hamano 2005-11-01 10:56:03 -08:00
Родитель 710c97dbb1
Коммит 77ab8798d3
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -56,8 +56,8 @@ void SHA1_Init(SHA_CTX *ctx) {
}
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

Просмотреть файл

@ -41,5 +41,5 @@ typedef struct {
} 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);