From ea28b134c69ded4acd918bc08eabbf9114a1c250 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 11 May 1990 16:52:24 +0000 Subject: [PATCH] implement it git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@851 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/keytab/ktdefault.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/keytab/ktdefault.c b/src/lib/krb5/keytab/ktdefault.c index be38f24eb..0cdc9c342 100644 --- a/src/lib/krb5/keytab/ktdefault.c +++ b/src/lib/krb5/keytab/ktdefault.c @@ -18,11 +18,17 @@ static char rcsid_ktdefault_c [] = #include #include #include +#include krb5_error_code krb5_kt_default(id) krb5_keytab *id; { - return EOPNOTSUPP; + char defname[BUFSIZ]; + krb5_error_code retval; + + if (retval = krb5_kt_default_name(defname, sizeof(defname))) + return retval; + return krb5_kt_resolve(defname, id); } -- 2.26.2