unify hdb_so_method and hdb_method

This commit is contained in:
Love Hornquist Astrand
2013-03-04 10:18:16 -08:00
parent 4787ea76a9
commit 1eb4e2516e
3 changed files with 30 additions and 115 deletions

View File

@@ -265,11 +265,10 @@ typedef struct HDB {
#define HDB_INTERFACE_VERSION 8
struct hdb_so_method {
int minor_version;
struct hdb_method {
int version;
krb5_error_code (KRB5_LIB_CALL *init)(krb5_context, void **);
void (KRB5_LIB_CALL *fini)(void *);
int version;
const char *prefix;
krb5_error_code (*create)(krb5_context, HDB **, const char *filename);
};
@@ -289,12 +288,6 @@ typedef krb5_error_code (*hdb_foreach_func_t)(krb5_context, HDB*,
hdb_entry_ex*, void*);
extern krb5_kt_ops hdb_kt_ops;
struct hdb_method {
int interface_version;
const char *prefix;
krb5_error_code (*create)(krb5_context, HDB **, const char *filename);
};
extern const int hdb_interface_version;
#include <hdb-protos.h>