From: Mark Eichin Date: Sat, 24 Feb 1996 00:40:44 +0000 (+0000) Subject: * keytab.c (krb5_ktkdb_close): new function, non-optional. X-Git-Tag: krb5-1.0-beta6~485 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=deff9983ae69275012d5ad27070f32783ac1f10d;p=krb5.git * keytab.c (krb5_ktkdb_close): new function, non-optional. (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 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 3984ce29b..c7c6ca73c 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,9 @@ +Fri Feb 23 19:39:52 1996 Mark Eichin + + * 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 * kdb_dbm.c (krb5_dbm_db_rename): Initialize pointer before use diff --git a/src/lib/kdb/keytab.c b/src/lib/kdb/keytab.c index 85bdf9cda..a4e83e2a5 100644 --- a/src/lib/kdb/keytab.c +++ b/src/lib/kdb/keytab.c @@ -25,21 +25,23 @@ #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;