summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRalph Giles <giles@ghostscript.com>2008-10-01 01:29:43 +0200
committerRalph Giles <giles@ghostscript.com>2008-10-01 01:29:43 +0200
commit88017cda82fa303fc0b4dcbd37d27e7b4605202d (patch)
treeba85ba049545b5da409f80350111a7bdaa4d0cb7 /include
parent3b0530dde8c79ac81d0e2041d3a844cf2ec6ed8e (diff)
downloadmupdf-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.h4
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 */