From: Greg Hudson Date: Thu, 5 Apr 2012 13:57:37 +0000 (+0000) Subject: Fix app tag choices for decoding EncASRepPart X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db9da51673393125d96f9d83b8d236861ba2fae9;p=krb5.git Fix app tag choices for decoding EncASRepPart When decoding an AS-REP enc part, we should accept app tags 26 (the bogus one we generate) and 25 (the correct value). We were accepting 26 and 24. Bug report and fix by stefw@gnome.org. ticket: 7111 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25802 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c index 467e2de6d..d8a2a872b 100644 --- a/src/lib/krb5/asn.1/asn1_k_encode.c +++ b/src/lib/krb5/asn.1/asn1_k_encode.c @@ -723,7 +723,7 @@ static const struct atype_info *enc_tkt_part_fields[] = { DEFSEQTYPE(untagged_enc_tkt_part, krb5_enc_tkt_part, enc_tkt_part_fields); DEFAPPTAGGEDTYPE(enc_tkt_part, 3, untagged_enc_tkt_part); -DEFAPPTAGGEDTYPE(enc_as_rep_part, 24, enc_kdc_rep_part); +DEFAPPTAGGEDTYPE(enc_as_rep_part, 25, enc_kdc_rep_part); DEFAPPTAGGEDTYPE(enc_tgs_rep_part, 26, enc_kdc_rep_part); DEFCTAGGEDTYPE(kdc_rep_0, 0, krb5_version);