On Tue, Mar 19, 2002 at 06:37:35PM +0000, Dr S N Henson wrote:
> Jeffrey Altman wrote:
> >
> > To make it very clear, the locations that I'm seeing warnings are:
> > ssl\kssl.c:
> >
> > In print_krb5_data() kdata->length is unsigned
> > In print_krb5_keyblock() keyblk->length is unsigned
> > [...etc]
>
> As I mentioned I got kerberos 1.2.4 sources from:
> http://non-us.debian.org/debian-non-US/pool/non-US/main/k/krb5
>
> kdata is of type krb5_data and in my version the kerberos header file
> krb5.h contains:
>
> typedef struct _krb5_data {
> krb5_magic magic;
> int length;
> char FAR *data;
> } krb5_data;
>
> This is in kerbsrc.zip generated from Unix. I've checked the linux
> headers and the same thing is in there. Maybe there are different
> versions of the source with different types for this field?
I think .length has always been int, at least for MIT KRB5 1.0.6
through 1.2.3. I haven't done anything on the PC side, except
for cygwin, which would have been the same as Unix.
> I'll just cast it to (int) in the above cases, that should shut the
> compiler up.
Seems reasonable to me.
--
"My company prefers to have that kind of decision made by
uninformed executives. We call it "Empowerment". --Dilbert
[EMAIL PROTECTED]
Vern Staats, ASC/HPTS, WPAFB OH 45433, 937-255-1616
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]