diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-16 14:26:16 +0200 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-16 14:26:16 +0200 |
commit | edf0bfb52b46bb9c8bf44e9c486be60c7087618c (patch) | |
tree | 6ad2135e6ba0e639b8938729fd55696605913011 /crypto/mdc2 | |
parent | Added a comment pointing out the behaviour of "openssl x509 -conf ...", (diff) | |
download | openssl-edf0bfb52b46bb9c8bf44e9c486be60c7087618c.tar.xz openssl-edf0bfb52b46bb9c8bf44e9c486be60c7087618c.zip |
Change type of various DES function arguments from des_cblock
(meaning pointer to char) to des_cblock * (meaning pointer to
array with 8 char elements), which allows the compiler to
do more typechecking. (The changed argument types were of type
des_cblock * back in SSLeay, and a lot of ugly casts were
used then to turn them into pointers to elements; but it can be
done without those casts.)
Introduce new type const_des_cblock -- before, the pointers rather
than the elements pointed to were declared const, and for
some reason gcc did not complain about this (but some other
compilers did).
Diffstat (limited to 'crypto/mdc2')
-rw-r--r-- | crypto/mdc2/mdc2dgst.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c index 8b5314fed8..4fc39ed86c 100644 --- a/crypto/mdc2/mdc2dgst.c +++ b/crypto/mdc2/mdc2dgst.c @@ -134,12 +134,12 @@ static void mdc2_body(MDC2_CTX *c, unsigned char *in, unsigned int len) c->h[0]=(c->h[0]&0x9f)|0x40; c->hh[0]=(c->hh[0]&0x9f)|0x20; - des_set_odd_parity(c->h); - des_set_key(c->h,k); + des_set_odd_parity(&c->h); + des_set_key(&c->h,k); des_encrypt(d,k,1); - des_set_odd_parity(c->hh); - des_set_key(c->hh,k); + des_set_odd_parity(&c->hh); + des_set_key(&c->hh,k); des_encrypt(dd,k,1); ttin0=tin0^dd[0]; |