summaryrefslogtreecommitdiff
path: root/crypto/cast/c_enc.c
diff options
context:
space:
mode:
authorbodo <bodo>1999-05-13 17:51:35 +0000
committerbodo <bodo>1999-05-13 17:51:35 +0000
commitc4409983f5bab840482253797edd1ffd970eadf2 (patch)
tree5816933bf95344b56abae407ef885413d3a28599 /crypto/cast/c_enc.c
parent1974a804fbaf19db95a1aa96ed7b41881f958ef6 (diff)
downloadopenssl-c4409983f5bab840482253797edd1ffd970eadf2.tar.gz
Don't use reserved name "_encrypt" for parameters;
instead I've picked "enc", because that's what's in the prototypes. ("_encrypt" is reserved only as an external name, but still using it in an application doesn't look like good style to me -- and it certainly isn't if the point is just avoiding shadowing, which is apparently why the previous name "encrypt" was changed.)
Diffstat (limited to 'crypto/cast/c_enc.c')
-rw-r--r--crypto/cast/c_enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cast/c_enc.c b/crypto/cast/c_enc.c
index ef70c8898..0fe2cffec 100644
--- a/crypto/cast/c_enc.c
+++ b/crypto/cast/c_enc.c
@@ -124,14 +124,14 @@ void CAST_decrypt(CAST_LONG *data, CAST_KEY *key)
}
void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
- CAST_KEY *ks, unsigned char *iv, int _encrypt)
+ CAST_KEY *ks, unsigned char *iv, int enc)
{
register CAST_LONG tin0,tin1;
register CAST_LONG tout0,tout1,xor0,xor1;
register long l=length;
CAST_LONG tin[2];
- if (_encrypt)
+ if (enc)
{
n2l(iv,tout0);
n2l(iv,tout1);