]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Use correct profile var in krb5_get_tgs_ktypes
authorTom Yu <tlyu@mit.edu>
Fri, 15 Jun 2012 19:12:16 +0000 (15:12 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 15 Jun 2012 19:12:16 +0000 (15:12 -0400)
In r21879, when we converted to using KRB5_CONF macros for profile
variable names, we made a typo in krb5_get_tgs_ktypes and erroneously
started using default_tkt_enctypes instead of default_tgs_enctypes for
TGS requests.  Fix the typo and return to the documented behavior.

(cherry picked from commit 627ed34ba368fe989b7498bddf9d9dae40d76135)

ticket: 7155
version_fixed: 1.10.3
status: resolved

src/lib/krb5/krb/init_ctx.c

index aa916b20f5ef72c6cb0ffabaada31c195ef2b022..059f764eb26d7e54701cc7264891e166e331793a 100644 (file)
@@ -539,7 +539,7 @@ krb5_get_tgs_ktypes(krb5_context context, krb5_const_principal princ, krb5_encty
         /* This one is set *only* by reading the config file; it's not
            set by the application.  */
         return get_profile_etype_list(context, ktypes,
-                                      KRB5_CONF_DEFAULT_TKT_ENCTYPES, NULL,
+                                      KRB5_CONF_DEFAULT_TGS_ENCTYPES, NULL,
                                       default_enctype_list);
     else
         return get_profile_etype_list(context, ktypes,