[659] in Kerberos-V5-bugs
appearent declaration bug in src/lib/krb5/asn.1/krb5_encode.c
daemon@ATHENA.MIT.EDU (dwcooley@COLBY.EDU)
Thu Aug 18 11:47:19 1994
To: krb5-bugs@MIT.EDU
Cc: dwcooley@workstation0.COLBY.EDU
Date: Thu, 18 Aug 94 11:43:40 EDT
From: dwcooley@COLBY.EDU
I am trying to push krb-5.B4.2 through a fully patched ANSI C compilier on an
an HP 9000 S800 running HP-UX 9.0.
krb5_encode fails to compile with the error message:
cc: "krb5_encode.c", line 342: error 1549: Modifiable lvalue
required for assign
ment operator.
(There are 3 other messages of the same ilk but with different line numbers.
All are assignments similar to the one below.)
The line in question in the above error message reads
rep->msg_type = KRB5_AS_REP;
in the routine encode_krb5_enc_rep_part whose opening lines are:
krb5_error_code encode_krb5_enc_kdc_rep_part(
DECLARG(const krb5_enc_kdc_rep_part *, rep),
DECLARG(krb5_data **, code))
OLDDECLARG(const krb5_enc_kdc_rep_part *, rep)
OLDDECLARG(krb5_data **, code)
It appears that rep is being declared as a pointer to a constant structure and
not as a constant pointer to a structure.
- -Dave Cooley
Colby College