(krb5_kt_get_entry): tell what enctype the caller requested to provide

the user with a glue what the caller was asking for.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14569 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-02-08 12:12:53 +00:00
parent 4e70d33d3f
commit 620f5d40f8

View File

@@ -329,9 +329,11 @@ krb5_kt_get_entry(krb5_context context,
return 0;
} else {
char princ[256], kt_name[256], kvno_str[25];
char *enctype_str = NULL;
krb5_unparse_name_fixed (context, principal, princ, sizeof(princ));
krb5_kt_get_name (context, id, kt_name, sizeof(kt_name));
krb5_enctype_to_string(context, enctype, &enctype_str);
if (kvno)
snprintf(kvno_str, sizeof(kvno_str), "(kvno %d)", kvno);
@@ -339,10 +341,12 @@ krb5_kt_get_entry(krb5_context context,
kvno_str[0] = '\0';
krb5_set_error_string (context,
"failed to find %s%s in keytab %s",
"failed to find %s%s in keytab %s (%s)",
princ,
kvno_str,
kt_name);
kt_name,
enctype_str ? enctype_str : "unknown enctype");
free(enctype_str);
return KRB5_KT_NOTFOUND;
}
}