Add lock functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2668 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -45,6 +45,8 @@
|
|||||||
|
|
||||||
#include <hdb_asn1.h>
|
#include <hdb_asn1.h>
|
||||||
|
|
||||||
|
enum hdb_lockop{ HDB_RLOCK, HDB_WLOCK };
|
||||||
|
|
||||||
typedef struct HDB{
|
typedef struct HDB{
|
||||||
void *db;
|
void *db;
|
||||||
|
|
||||||
@@ -54,6 +56,9 @@ typedef struct HDB{
|
|||||||
krb5_error_code (*delete)(krb5_context, struct HDB*, hdb_entry*);
|
krb5_error_code (*delete)(krb5_context, struct HDB*, hdb_entry*);
|
||||||
krb5_error_code (*firstkey)(krb5_context, struct HDB*, hdb_entry*);
|
krb5_error_code (*firstkey)(krb5_context, struct HDB*, hdb_entry*);
|
||||||
krb5_error_code (*nextkey)(krb5_context, struct HDB*, hdb_entry*);
|
krb5_error_code (*nextkey)(krb5_context, struct HDB*, hdb_entry*);
|
||||||
|
krb5_error_code (*lock)(krb5_context, struct HDB*, int operation);
|
||||||
|
krb5_error_code (*unlock)(krb5_context, struct HDB*);
|
||||||
|
krb5_error_code (*_get)(krb5_context, struct HDB*, krb5_data, krb5_data*);
|
||||||
}HDB;
|
}HDB;
|
||||||
|
|
||||||
void hdb_free_entry(krb5_context, hdb_entry*);
|
void hdb_free_entry(krb5_context, hdb_entry*);
|
||||||
|
Reference in New Issue
Block a user