From 12cc35712c4d82f8c23d8156d9607d422e40919d Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 7 Jan 2009 18:13:30 +0000 Subject: [PATCH] kdb/keytab.c: map KRB5_KDB_NO_MATCHING_KEY to KRB5_KT_KVNONOTFOUND. At least in cases other than tgts, this code handles its own enctype matching, so kvno not found is the only thing that produces the no matching key error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21718 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/keytab.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/kdb/keytab.c b/src/lib/kdb/keytab.c index fa95e4851..395b56d61 100644 --- a/src/lib/kdb/keytab.c +++ b/src/lib/kdb/keytab.c @@ -173,6 +173,8 @@ krb5_ktkdb_get_entry(in_context, id, principal, kvno, enctype, entry) kerror = krb5_dbe_find_enctype(context, &db_entry, xrealm_tgt?enctype:-1, -1, kvno, &key_data); + if (kerror == KRB5_KDB_NO_MATCHING_KEY) + kerror = KRB5_KT_KVNONOTFOUND; if (kerror) goto error; -- 2.26.2