[777] in Kerberos-V5-bugs

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

incorrect use oif 'const' in Krb5B4

daemon@ATHENA.MIT.EDU (Ward_Travis@transarc.com)
Mon Sep 26 16:13:21 1994

Date: Mon, 26 Sep 1994 16:11:52 -0400 (EDT)
From: Ward_Travis@transarc.com
To: krb5-bugs@MIT.EDU

When building KRB5B4 with Solaris C in ANSI mode, the following diff is
required to remove uses of 'const' that disallow the setting of the
reply's 'msg_type' field in four places within asn.1/krb5_encode.c :

(config: ../src/configure --with-krb5-root=/krb5b4
	--with-cc=/opt/SUNWspro/bin/cc --with-ccopts=-Xa
)

(These changes must be reflected in krb5_encode.h as well.)

329c329
< krb5_error_code encode_krb5_as_rep(DECLARG(krb5_kdc_rep *, rep),
---
> krb5_error_code encode_krb5_as_rep(DECLARG(const krb5_kdc_rep *, rep),
331c331
<      OLDDECLARG(krb5_kdc_rep *, rep)
---
>      OLDDECLARG(const krb5_kdc_rep *, rep)
355c355
< krb5_error_code encode_krb5_tgs_rep(DECLARG(krb5_kdc_rep *, rep),
---
> krb5_error_code encode_krb5_tgs_rep(DECLARG(const krb5_kdc_rep *, rep),
357c357
<      OLDDECLARG(krb5_kdc_rep *, rep)
---
>      OLDDECLARG(const krb5_kdc_rep *, rep)
456c456
< krb5_error_code encode_krb5_as_req(DECLARG(krb5_kdc_req *, rep),
---
> krb5_error_code encode_krb5_as_req(DECLARG(const krb5_kdc_req *, rep),
458c458
<      OLDDECLARG(krb5_kdc_req *, rep)
---
>      OLDDECLARG(const krb5_kdc_req *, rep)
476c476
< krb5_error_code encode_krb5_tgs_req(DECLARG(krb5_kdc_req *, rep),
---
> krb5_error_code encode_krb5_tgs_req(DECLARG(const krb5_kdc_req *, rep),
478c478
<      OLDDECLARG(krb5_kdc_req *, rep)
---
>      OLDDECLARG(const krb5_kdc_req *, rep)


--
Ward C. Travis	     Pittsburgh PA USA	"The fact is the sweetest dream that
travis@transarc.com	(412) 338 4388	       labor knows."  - R. Frost

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