]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
In kpropd, debug-log proper ticket enctype names
authorRobbie Harwood <rharwood@redhat.com>
Tue, 15 Jan 2019 18:41:16 +0000 (13:41 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 16 Jan 2019 18:36:37 +0000 (13:36 -0500)
This change replaces the last call of krb5_enctype_to_string() in our
sources with krb5_enctype_to_name(), ensuring that we log consistently
to users using readily discoverable strings.

src/kprop/kpropd.c

index 68323dd0fa24f1b4f7c6f7e97c84137b6f04f94c..e3b73991b3867b22c4c7547ad0bbab0b955382a2 100644 (file)
@@ -1270,7 +1270,8 @@ kerberos_authenticate(krb5_context context, int fd, krb5_principal *clientp,
             exit(1);
         }
 
-        retval = krb5_enctype_to_string(*etype, etypebuf, sizeof(etypebuf));
+        retval = krb5_enctype_to_name(*etype, FALSE, etypebuf,
+                                      sizeof(etypebuf));
         if (retval) {
             com_err(progname, retval, _("while unparsing ticket etype"));
             exit(1);