implement it
authorJohn Kohl <jtkohl@mit.edu>
Fri, 11 May 1990 16:52:24 +0000 (16:52 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 11 May 1990 16:52:24 +0000 (16:52 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@851 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/ktdefault.c

index be38f24ebf355bec8ef31eaf6e5e578dfa63ee65..0cdc9c342ea3ec56c027cb9eded9ae3d3700e791 100644 (file)
@@ -18,11 +18,17 @@ static char rcsid_ktdefault_c [] =
 #include <krb5/copyright.h>
 #include <krb5/krb5.h>
 #include <errno.h>
+#include <stdio.h>
 
 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);
 }