[51] in GSSAPI Development
Use of void *
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Mon Jun 3 19:10:19 1991
Date: Mon, 3 Jun 91 19:09:48 -0400
From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
To: gssapi-dev@ATHENA.MIT.EDU
Reply-To: tytso@ATHENA.MIT.EDU
I suggest that we change references to "void *" to "gss_pointer", where
"gss_pointer" can be defined to void * for compilers which support it,
and char * for compilers that don't. (Like the cc that comes with
Ultrix 3.1, for example....)
The C Bindings Spec should also specifically say that the programmer
must assume that gss_pointer might be a void *, so that things like
input_chan_bindings->acceptor_address.value[0] = ((to_addr & 0xff000000) >> 24);
(from fcmd.c, approximately line 270)
are explicitly disallowed. (Arithmetic using void pointers is extremely
bad form.)
- Ted