svn rev #21718: trunk/src/lib/kdb/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Jan 7 13:13:31 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21718
Commit By: hartmans
Log Message:
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.
Changed Files:
U trunk/src/lib/kdb/keytab.c
Modified: trunk/src/lib/kdb/keytab.c
===================================================================
--- trunk/src/lib/kdb/keytab.c 2009-01-07 00:11:40 UTC (rev 21717)
+++ trunk/src/lib/kdb/keytab.c 2009-01-07 18:13:30 UTC (rev 21718)
@@ -173,6 +173,8 @@
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;
More information about the cvs-krb5
mailing list