From 808a0396b89c484fe229462e0447945d3c07939f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 7 Feb 2000 00:26:40 +0000 Subject: [PATCH] more fcusack changes - rest of first set git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12006 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/ChangeLog | 9 +++++++-- src/lib/krb5/asn.1/asn1_k_decode.c | 6 ++++++ src/lib/krb5/asn.1/asn1_k_encode.c | 5 +++++ src/lib/krb5/krb/ChangeLog | 1 + 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index c75e244dd..68bbdeff3 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,8 +1,13 @@ -2000-02-06 Ken Raeburn +2000-02-06 Ken Raeburn + Patches from Frank Cusack for helping in preauth replay + detection. * asn1_k_decode.c (asn1_decode_enc_sam_response_enc): Update for field name change. - * asn1_k_encode.c (asn1_encode_enc_sam_response_enc): Likewise. + (asn1_decode_predicted_sam_response): Handle new fields. + * asn1_k_encode.c (asn1_encode_enc_sam_response_enc): Update for + field name change. + (asn1_encode_predicted_sam_response): Handle new fields. 2000-02-01 Danilo Almeida diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 788dbf575..e98597737 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -829,6 +829,12 @@ asn1_error_code asn1_decode_predicted_sam_response(buf, val) setup(); { begin_structure(); get_field(val->sam_key,0,asn1_decode_encryption_key); + get_field(val->stime,1,asn1_decode_kerberos_time); + get_field(val->susec,2,asn1_decode_int32); + alloc_field(val->client,krb5_principal_data); + get_field(val->client,3,asn1_decode_realm); + get_field(val->client,4,asn1_decode_principal_name); + opt_string(val->msd,5,asn1_decode_octectstring); end_structure(); val->magic = KV5M_PREDICTED_SAM_RESPONSE; } diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c index 8b02aa29a..2bc9b132c 100644 --- a/src/lib/krb5/asn.1/asn1_k_encode.c +++ b/src/lib/krb5/asn.1/asn1_k_encode.c @@ -952,6 +952,11 @@ asn1_error_code asn1_encode_predicted_sam_response(buf, val, retlen) { asn1_setup(); + add_optstring(val->msd,5,asn1_encode_octetstring); + asn1_addfield(val->client,4,asn1_encode_principal_name); + asn1_addfield(val->client,3,asn1_encode_realm); + asn1_addfield(val->susec,2,asn1_encode_integer); + asn1_addfield(val->stime,1,asn1_encode_kerberos_time); asn1_addfield(&(val->sam_key),0,asn1_encode_encryption_key); asn1_makeseq(); diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 054f69f94..90d41760b 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,5 +1,6 @@ 2000-02-06 Ken Raeburn + Patches from Frank Cusack: * kfree.c (krb5_free_predicted_sam_response_contents): Fix typo. Free new data fields if needed. (krb5_free_enc_sam_response_enc_contents): Update for field name -- 2.26.2