summaryrefslogtreecommitdiffstats
path: root/crypto/cast/c_ecb.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-05-13 17:10:42 +0000
committerBen Laurie <ben@openssl.org>1999-05-13 17:10:42 +0000
commit90ba7e21e1e04ba833c807bcb3dc2bdc5136a6b5 (patch)
treeef2bc7e23be9f0d0efdd7bf9c4531696bede3b00 /crypto/cast/c_ecb.c
parent224551f73222609952dcc0f21a6b007009c23d60 (diff)
Avoid shadowing, and a bit of constification while I'm at it.
Diffstat (limited to 'crypto/cast/c_ecb.c')
-rw-r--r--crypto/cast/c_ecb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/cast/c_ecb.c b/crypto/cast/c_ecb.c
index 4b523ffc75..e237ebcac4 100644
--- a/crypto/cast/c_ecb.c
+++ b/crypto/cast/c_ecb.c
@@ -62,14 +62,14 @@
char *CAST_version="CAST" OPENSSL_VERSION_PTEXT;
-void CAST_ecb_encrypt(unsigned char *in, unsigned char *out, CAST_KEY *ks,
- int encrypt)
+void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,
+ CAST_KEY *ks, int _encrypt)
{
CAST_LONG l,d[2];
n2l(in,l); d[0]=l;
n2l(in,l); d[1]=l;
- if (encrypt)
+ if (_encrypt)
CAST_encrypt(d,ks);
else
CAST_decrypt(d,ks);