From: John Kohl Date: Wed, 17 Jan 1990 14:06:33 +0000 (+0000) Subject: fix up TGS_REP and AS_REP routines X-Git-Tag: krb5-1.0-alpha2~1280 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e6da46d5d14298bfdd066e6051aaf77b9789466;p=krb5.git fix up TGS_REP and AS_REP routines git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@102 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/asn.1/encode.h b/src/include/krb5/asn.1/encode.h index 7ac2c5574..02ffd3653 100644 --- a/src/include/krb5/asn.1/encode.h +++ b/src/include/krb5/asn.1/encode.h @@ -52,18 +52,31 @@ KRB5_AS__REQ2krb5_as_req, \ free_KRB5_AS__REQ) -#define encode_krb5_kdc_rep(req, error) \ +#define encode_krb5_as_rep(req, error) \ encode_generic(req, error, \ encode_KRB5_KDC__REP, \ - krb5_kdc_rep2KRB5_KDC__REP, \ + krb5_as_rep2KRB5_KDC__REP, \ free_KRB5_KDC__REP) -#define decode_krb5_kdc_rep(req, error) \ +#define decode_krb5_as_rep(req, error) \ (krb5_kdc_rep *) \ decode_generic(req, error, \ decode_KRB5_KDC__REP, \ - KRB5_KDC__REP2krb5_kdc_rep, \ + KRB5_KDC__REP2krb5_as_rep, \ free_KRB5_KDC__REP) +#define encode_krb5_tgs_rep(req, error) \ + encode_generic(req, error, \ + encode_KRB5_KDC__REP, \ + krb5_tgs_rep2KRB5_KDC__REP, \ + free_KRB5_KDC__REP) +#define decode_krb5_tgs_rep(req, error) \ + (krb5_kdc_rep *) \ + decode_generic(req, error, \ + decode_KRB5_KDC__REP, \ + KRB5_KDC__REP2krb5_tgs_rep, \ + free_KRB5_KDC__REP) + + #define encode_krb5_ap_req(req, error) \ encode_generic(req, error, \ encode_KRB5_AP__REQ, \