From: Sam Hartman Date: Wed, 7 Jan 2009 18:13:30 +0000 (+0000) Subject: kdb/keytab.c: map KRB5_KDB_NO_MATCHING_KEY to KRB5_KT_KVNONOTFOUND. X-Git-Tag: krb5-1.7-alpha1~90 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=12cc35712c4d82f8c23d8156d9607d422e40919d;p=krb5.git 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 --- 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;