summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2009-01-07 18:13:30 +0000
committerSam Hartman <hartmans@mit.edu>2009-01-07 18:13:30 +0000
commit12cc35712c4d82f8c23d8156d9607d422e40919d (patch)
tree00d08e6eb48db3e884d8ec7493810d6edb4ac982 /src
parenta8683c39913bf4d7739f9a2b888d2d9fa8cf2e01 (diff)
downloadkrb5-12cc35712c4d82f8c23d8156d9607d422e40919d.tar.gz
krb5-12cc35712c4d82f8c23d8156d9607d422e40919d.tar.xz
krb5-12cc35712c4d82f8c23d8156d9607d422e40919d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/kdb/keytab.c2
1 files changed, 2 insertions, 0 deletions
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;