[3652] in Kerberos
conflicting pcbc_encrypt() prototype
daemon@ATHENA.MIT.EDU (Porlin Kang)
Sat Aug 6 19:21:01 1994
To: kerberos@MIT.EDU
Date: Sat, 6 Aug 1994 18:46:45 -0400
From: Porlin Kang <pk2k+@andrew.cmu.edu>
Hello,
I am just wondering if anyone notice the inconsistency between
the prototype for pcbc_encrypt() (in lib/des/desglue.c and the actual
argument passed to pcbc_encrypt() (in the mk_priv call).
In mk_priv.c, the 5th argument is passed as des_cblock which is
subsequently passed as des_cblock to pcbc_encrypt(). However,
in the pcbc_encrypt() prototype (in lib/des/desglue.c), the 5th
argument is defined as des_cblock* (pointer variable).
Is this intentional. I found this when I compile my program
with a C++ compiler (strong typechecking). When I cast the
des_cblock to des_cblock*, the compiler stopped complaining
and the program work fine. I just want to make sure I am doing
the right thing.
Thanks,
--porlin