From: Theodore Tso Date: Thu, 21 Mar 1996 04:17:29 +0000 (+0000) Subject: Decode pa_type in the krb5_pa_data structure as a krb5_int32, since it X-Git-Tag: krb5-1.0-beta6~312 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b90519270d5c0ee447387c4aa056d232454623d;p=krb5.git Decode pa_type in the krb5_pa_data structure as a krb5_int32, since it is now type krb5_preauthtype. Decode etype in the krb5_etype_info_entry as krb5_enctype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7691 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 910135544..583dd6872 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,5 +1,10 @@ Wed Mar 20 22:43:17 1996 Theodore Y. Ts'o + * asn1_k_decode.c: Decode pa_type in the krb5_pa_data structure as + a krb5_int32, since it is now type krb5_preauthtype. + (asn1_decode_etype_info_entry): Decode etype in the + krb5_etype_info_entry as krb5_enctype. + * krb5_decode.c (decode_krb5_pa_enc_ts): Fix 16 bit vs. 32bit error in the encoded timestamp structure. diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index dac9a4c79..2d8654a20 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -603,7 +603,7 @@ asn1_error_code asn1_decode_pa_data(buf, val) { setup(); { begin_structure(); - get_field(val->pa_type,1,asn1_decode_ui_2); + get_field(val->pa_type,1,asn1_decode_int32); get_lenfield(val->length,val->contents,2,asn1_decode_octetstring); end_structure(); val->magic = KV5M_PA_DATA; @@ -661,7 +661,7 @@ asn1_error_code asn1_decode_etype_info_entry(buf, val) { setup(); { begin_structure(); - get_field(val->etype,0,asn1_decode_ui_4); + get_field(val->etype,0,asn1_decode_enctype); if (tagnum == 1) { get_lenfield(val->length,val->salt,1,asn1_decode_octetstring); } else {