add HDBGET: that only supports get, iteration doesnt really make sense for the HDB keytab except when dumping

This commit is contained in:
Love Hornquist Astrand
2013-10-15 12:40:39 +02:00
parent d1eb0da071
commit 1d84562886
16 changed files with 56 additions and 20 deletions

View File

@@ -287,6 +287,7 @@ struct hdb_print_entry_arg {
typedef krb5_error_code (*hdb_foreach_func_t)(krb5_context, HDB*,
hdb_entry_ex*, void*);
extern krb5_kt_ops hdb_kt_ops;
extern krb5_kt_ops hdb_get_kt_ops;
extern const int hdb_interface_version;

View File

@@ -424,3 +424,19 @@ krb5_kt_ops hdb_kt_ops = {
NULL,
0
};
krb5_kt_ops hdb_get_kt_ops = {
"HDBGET",
hdb_resolve,
hdb_get_name,
hdb_close,
NULL,
hdb_get_entry,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
0
};

View File

@@ -73,6 +73,7 @@ EXPORTS
initialize_hdb_error_table_r
hdb_kt_ops
hdb_get_kt_ops
; MIT KDB related entries
_hdb_mdb_value2entry

View File

@@ -80,6 +80,7 @@ HEIMDAL_HDB_1.0 {
_hdb_mit_dump2mitdb_entry;
hdb_kt_ops;
hdb_get_kt_ops;
# some random bits needed for libkadm
add_HDB_Ext_KeySet;