* keytab.c (krb5_ktkdb_close): new function, non-optional.
authorMark Eichin <eichin@mit.edu>
Sat, 24 Feb 1996 00:40:44 +0000 (00:40 +0000)
committerMark Eichin <eichin@mit.edu>
Sat, 24 Feb 1996 00:40:44 +0000 (00:40 +0000)
(krb5_kt_kdb_ops): include _close method, comment what the other
slots are.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7510 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/keytab.c

index 3984ce29b4c07607790640c831f1e3ceac01cc5d..c7c6ca73c98722ff9669079705594c8856079608 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb 23 19:39:52 1996  Mark Eichin  <eichin@cygnus.com>
+
+       * keytab.c (krb5_ktkdb_close): new function, non-optional.
+       (krb5_kt_kdb_ops): include _close method, comment what the other
+       slots are.
+
 Tue Feb 13 21:33:03 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * kdb_dbm.c (krb5_dbm_db_rename): Initialize pointer before use
index 85bdf9cda420fe167026003d4cf0b9c1548f27f8..a4e83e2a5759e63c677eca2df6e5c0fadd01223c 100644 (file)
 #include "k5-int.h"
 #include "kdb_dbc.h"
 
+krb5_error_code krb5_ktkdb_close KRB5_PROTOTYPE((krb5_context, krb5_keytab));
+
 krb5_error_code krb5_ktkdb_get_entry KRB5_PROTOTYPE((krb5_context, krb5_keytab, krb5_principal,
-                       krb5_kvno, krb5_enctype, krb5_keytab_entry *));
+                  krb5_kvno, krb5_enctype, krb5_keytab_entry *));
 
 krb5_kt_ops krb5_kt_kdb_ops = {
     0,
     "KDB",     /* Prefix -- this string should not appear anywhere else! */
-    NULL,
-    NULL,
-    NULL,
-    krb5_ktkdb_get_entry,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
-    NULL,
+    NULL,                      /* resolve */
+    NULL,                      /* get_name */
+    krb5_ktkdb_close,          /* close */
+    krb5_ktkdb_get_entry,      /* get */
+    NULL,                      /* start_seq_get */
+    NULL,                      /* get_next */
+    NULL,                      /* end_get */
+    NULL,                      /* add (extended) */
+    NULL,                      /* remove (extended) */
     NULL,              /* (void *) &krb5_ktfile_ser_entry */
 };
 
@@ -70,6 +72,15 @@ krb5_ktkdb_resolve(context, kdb, id)
     return(0);
 }
 
+krb5_error_code
+krb5_ktkdb_close(context, kt)
+     krb5_context context;
+     krb5_keytab kt;
+{
+  /* no state outstanding... */
+  return 0;
+}
+
 krb5_error_code
 krb5_ktkdb_get_entry(context, id, principal, kvno, enctype, entry)
     krb5_context         context;