* kdc_preauth.c (return_etype_info2): Apply patch from Will
authorTom Yu <tlyu@mit.edu>
Wed, 12 Oct 2005 19:56:41 +0000 (19:56 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 12 Oct 2005 19:56:41 +0000 (19:56 +0000)
Fiveash to use reply key's enctype, not the long-term key's
enctype, to avoid some enctype similarity problems.

ticket: 3205
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17420 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/kdc_preauth.c

index c723ab128060858c28c8ef1e0c82f21070f36336..0b197b2feae8db5ca893150112676a4204766e74 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-12  Tom Yu  <tlyu@mit.edu>
+
+       * kdc_preauth.c (return_etype_info2): Apply patch from Will
+       Fiveash to use reply key's enctype, not the long-term key's
+       enctype, to avoid some enctype similarity problems.
+
 2005-07-12  Tom Yu  <tlyu@mit.edu>
 
        * do_as_req.c (prepare_error_as):
index da7ddfa56a4167f301ab46c1dc558fc2b6d98b8f..e2ffe255b3a4f7e9204cf679aebadde4ecb5fbcf 100644 (file)
@@ -771,7 +771,8 @@ return_etype_info2(krb5_context context, krb5_pa_data * padata,
     }
     entry[0] = NULL;
     entry[1] = NULL;
-    retval = _make_etype_info_entry(context, request, client_key, client_key->key_data_type[0],
+    retval = _make_etype_info_entry(context, request,
+                                   client_key, encrypting_key->enctype,
                                    entry, 1);
     if (retval)
        goto cleanup;