From c64b8e63705bbb71e3cc6877c17479ba45bc02ef Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Mon, 29 Sep 2008 23:53:01 +0200 Subject: const-ify md5 interface. Allow passing const data into the api without generating warnings. This requires propagating the const into the underlying implementation. --- include/fitz/stm_crypt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/fitz/stm_crypt.h') diff --git a/include/fitz/stm_crypt.h b/include/fitz/stm_crypt.h index 4e0bc725..57001752 100644 --- a/include/fitz/stm_crypt.h +++ b/include/fitz/stm_crypt.h @@ -20,7 +20,7 @@ struct fz_md5_s }; void fz_md5init(fz_md5 *state); -void fz_md5update(fz_md5 *state, unsigned char *input, unsigned inlen); +void fz_md5update(fz_md5 *state, const unsigned char *input, const unsigned inlen); void fz_md5final(fz_md5 *state, unsigned char digest[16]); /* arc4 crypto */ -- cgit v1.2.3