[2558] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Prototype hell

daemon@ATHENA.MIT.EDU (Ken Hornstein)
Fri Oct 10 16:23:45 1997

To: "Theodore Y. Ts'o" <tytso@MIT.EDU>
Cc: krbdev@MIT.EDU
In-Reply-To: Your message of "Fri, 10 Oct 1997 16:16:14 EDT."
             <199710102016.QAA27229@dcl.MIT.EDU> 
Date: Fri, 10 Oct 1997 16:23:33 -0400
From: Ken Hornstein <kenh@cmf.nrl.navy.mil>

>Stupid question ---- why does it help to make krb5_int32 be a short?
>Given that sizeof(short) is still 8 bytes, it's still going to break
>things.....  you might as well set krb5_int32 to be an int.  Either way,
>you'll still need to fix those places which depend on sizeof(krb5_int32)
>to be equal to 4.

It makes things easier when you depend on the mathematical properties of
32-bit integers ... such as when you're shifting bits around when
doing DES calculations, for instance.  I'd agree that's a bug too, but
I was going for minimum work :-)

And since on _some_ Cray architectures, short really is 32 bits, using
short as krb5_int32 was my plan from when I first started.  Doesn't
seem like it's going to be that easy, though.

--Ken

home help back first fref pref prev next nref lref last post