Change type of various DES function arguments from des_cblock
authorBodo Möller <bodo@openssl.org>
Sun, 16 May 1999 12:26:16 +0000 (12:26 +0000)
committerBodo Möller <bodo@openssl.org>
Sun, 16 May 1999 12:26:16 +0000 (12:26 +0000)
commitedf0bfb52b46bb9c8bf44e9c486be60c7087618c
tree6ad2135e6ba0e639b8938729fd55696605913011
parente186bf96b433b85fc3a87b3ca2fd6c1929212d72
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).
37 files changed:
apps/speed.c
crypto/des/cbc_cksm.c
crypto/des/cbc_enc.c
crypto/des/cfb64ede.c
crypto/des/cfb64enc.c
crypto/des/cfb_enc.c
crypto/des/des.h
crypto/des/des_enc.c
crypto/des/destest.c
crypto/des/ecb3_enc.c
crypto/des/ecb_enc.c
crypto/des/ede_cbcm_enc.c
crypto/des/enc_read.c
crypto/des/enc_writ.c
crypto/des/fcrypt.c
crypto/des/ofb64ede.c
crypto/des/ofb64enc.c
crypto/des/ofb_enc.c
crypto/des/pcbc_enc.c
crypto/des/qud_cksm.c
crypto/des/rand_key.c
crypto/des/read2pwd.c
crypto/des/rpc_enc.c
crypto/des/set_key.c
crypto/des/str2key.c
crypto/des/supp.c
crypto/des/xcbc_enc.c
crypto/evp/e_cbc_3d.c
crypto/evp/e_cbc_d.c
crypto/evp/e_cfb_3d.c
crypto/evp/e_cfb_d.c
crypto/evp/e_ecb_3d.c
crypto/evp/e_ecb_d.c
crypto/evp/e_ofb_3d.c
crypto/evp/e_ofb_d.c
crypto/evp/e_xcbc_d.c
crypto/mdc2/mdc2dgst.c