diff options
author | Ralph Giles <giles@ghostscript.com> | 2008-10-01 01:29:43 +0200 |
---|---|---|
committer | Ralph Giles <giles@ghostscript.com> | 2008-10-01 01:29:43 +0200 |
commit | 88017cda82fa303fc0b4dcbd37d27e7b4605202d (patch) | |
tree | ba85ba049545b5da409f80350111a7bdaa4d0cb7 /include | |
parent | 3b0530dde8c79ac81d0e2041d3a844cf2ec6ed8e (diff) | |
download | mupdf-88017cda82fa303fc0b4dcbd37d27e7b4605202d.tar.xz |
Const-ify the arc4 interface.
Allow passing const data into the api without generating warnings.
Diffstat (limited to 'include')
-rw-r--r-- | include/fitz/stm_crypt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fitz/stm_crypt.h b/include/fitz/stm_crypt.h index 57001752..9c3679af 100644 --- a/include/fitz/stm_crypt.h +++ b/include/fitz/stm_crypt.h @@ -34,9 +34,9 @@ struct fz_arc4_s unsigned char state[256]; }; -void fz_arc4init(fz_arc4 *state, unsigned char *key, unsigned len); +void fz_arc4init(fz_arc4 *state, const unsigned char *key, const unsigned len); unsigned char fz_arc4next(fz_arc4 *state); -void fz_arc4encrypt(fz_arc4 *state, unsigned char *dest, unsigned char *src, unsigned len); +void fz_arc4encrypt(fz_arc4 *state, unsigned char *dest, const unsigned char *src, const unsigned len); /* TODO: sha1 */ /* TODO: aes */ |