diff options
author | phk <phk@FreeBSD.org> | 1994-11-07 20:48:35 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-11-07 20:48:35 +0000 |
commit | 1331c46d810c83bbf73d1d5f87b26a0c192f778e (patch) | |
tree | 363e9941ec227dcd459032b2e309e2bb1975a8c3 /lib/libmd/md5c.c | |
parent | 4d684eab18a4ee4fe1eb967ae82991e2b20a43eb (diff) | |
download | FreeBSD-src-1331c46d810c83bbf73d1d5f87b26a0c192f778e.zip FreeBSD-src-1331c46d810c83bbf73d1d5f87b26a0c192f778e.tar.gz |
Added "const" to the arguments here and there.
Diffstat (limited to 'lib/libmd/md5c.c')
-rw-r--r-- | lib/libmd/md5c.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libmd/md5c.c b/lib/libmd/md5c.c index 9ad3c7f..ab4e60e 100644 --- a/lib/libmd/md5c.c +++ b/lib/libmd/md5c.c @@ -51,11 +51,11 @@ typedef unsigned long int UINT4; #define S43 15 #define S44 21 -static void MD5Transform PROTO_LIST ((UINT4 [4], unsigned char [64])); +static void MD5Transform PROTO_LIST ((UINT4 [4], const unsigned char [64])); static void Encode PROTO_LIST ((unsigned char *, UINT4 *, unsigned int)); static void Decode PROTO_LIST - ((UINT4 *, unsigned char *, unsigned int)); + ((UINT4 *, const unsigned char *, unsigned int)); static unsigned char PADDING[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -118,7 +118,7 @@ MD5_CTX *context; /* context */ */ void MD5Update (context, input, inputLen) MD5_CTX *context; /* context */ -unsigned char *input; /* input block */ +const unsigned char *input; /* input block */ unsigned int inputLen; /* length of input block */ { unsigned int i, index, partLen; @@ -188,7 +188,7 @@ MD5_CTX *context; /* context */ */ static void MD5Transform (state, block) UINT4 state[4]; -unsigned char block[64]; +const unsigned char block[64]; { UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; @@ -299,7 +299,7 @@ unsigned int len; */ static void Decode (output, input, len) UINT4 *output; -unsigned char *input; +const unsigned char *input; unsigned int len; { unsigned int i, j; |