From 7a21498b3418234ff9f277b24cb79c8f45c2306d Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 10 Oct 1990 12:08:52 +0000 Subject: [PATCH] fixes for new TGS stuff git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1209 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/kdcr2kkdcr.c | 2 +- src/lib/krb5/asn.1/kdcr2ktgsr.c | 2 +- src/lib/krb5/asn.1/kkdcr2kdcr.c | 6 +++--- src/lib/krb5/asn.1/ktgsr2kdcr.c | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lib/krb5/asn.1/kdcr2kkdcr.c b/src/lib/krb5/asn.1/kdcr2kkdcr.c index 002ee2e6e..191c59da0 100644 --- a/src/lib/krb5/asn.1/kdcr2kkdcr.c +++ b/src/lib/krb5/asn.1/kdcr2kkdcr.c @@ -30,7 +30,7 @@ static char rcsid_kdcr2kkdcr_c[] = krb5_kdc_rep * KRB5_KDC__REP2krb5_kdc_rep(val, type, error) -const register struct type_KRB5_KDC__REP *val; +const register struct type_KRB5_TGS__REP *val; krb5_msgtype *type; register int *error; { diff --git a/src/lib/krb5/asn.1/kdcr2ktgsr.c b/src/lib/krb5/asn.1/kdcr2ktgsr.c index 18deabcd8..a24edf2d3 100644 --- a/src/lib/krb5/asn.1/kdcr2ktgsr.c +++ b/src/lib/krb5/asn.1/kdcr2ktgsr.c @@ -30,7 +30,7 @@ static char rcsid_kdcr2ktgsr_c[] = krb5_kdc_rep * KRB5_KDC__REP2krb5_tgs_rep(val, error) -const register struct type_KRB5_KDC__REP *val; +const register struct type_KRB5_TGS__REP *val; register int *error; { krb5_msgtype type; diff --git a/src/lib/krb5/asn.1/kkdcr2kdcr.c b/src/lib/krb5/asn.1/kkdcr2kdcr.c index 0315f9da4..2326b9758 100644 --- a/src/lib/krb5/asn.1/kkdcr2kdcr.c +++ b/src/lib/krb5/asn.1/kkdcr2kdcr.c @@ -27,7 +27,7 @@ static char rcsid_kkdcr2kdcr_c[] = /* ISODE defines max(a,b) */ -struct type_KRB5_KDC__REP * +struct type_KRB5_TGS__REP * krb5_kdc_rep2KRB5_KDC__REP(DECLARG(const register krb5_kdc_rep *,val), DECLARG(const krb5_msgtype, type), DECLARG(register int *,error)) @@ -35,9 +35,9 @@ OLDDECLARG(const register krb5_kdc_rep *,val) OLDDECLARG(const krb5_msgtype, type) OLDDECLARG(register int *,error) { - register struct type_KRB5_KDC__REP *retval; + register struct type_KRB5_TGS__REP *retval; - retval = (struct type_KRB5_KDC__REP *)xmalloc(sizeof(*retval)); + retval = (struct type_KRB5_TGS__REP *)xmalloc(sizeof(*retval)); if (!retval) { *error = ENOMEM; return(0); diff --git a/src/lib/krb5/asn.1/ktgsr2kdcr.c b/src/lib/krb5/asn.1/ktgsr2kdcr.c index 499e0ce04..348453c2d 100644 --- a/src/lib/krb5/asn.1/ktgsr2kdcr.c +++ b/src/lib/krb5/asn.1/ktgsr2kdcr.c @@ -28,10 +28,11 @@ static char rcsid_ktgsr2kdcr_c[] = /* ISODE defines max(a,b) */ -struct type_KRB5_KDC__REP * +struct type_KRB5_TGS__REP * krb5_tgs_rep2KRB5_KDC__REP(val, error) const register krb5_kdc_rep *val; register int *error; { - return krb5_kdc_rep2KRB5_KDC__REP(val, KRB5_TGS_REP, error); + return (struct type_KRB5_TGS__REP *) + krb5_kdc_rep2KRB5_KDC__REP(val, KRB5_TGS_REP, error); } -- 2.26.2