Add hdb_set_sync() method

This commit is contained in:
Nicolas Williams
2017-10-10 13:06:21 -05:00
parent e3cc7dfb94
commit 5bcbe2125b
7 changed files with 140 additions and 54 deletions

View File

@@ -271,9 +271,17 @@ typedef struct HDB {
* Check if s4u2self is allowed from this client to this server
*/
krb5_error_code (*hdb_check_s4u2self)(krb5_context, struct HDB *, hdb_entry_ex *, krb5_const_principal);
/**
* Enable/disable synchronous updates
*
* Calling this with 0 disables sync. Calling it with non-zero enables
* sync and does an fsync().
*/
krb5_error_code (*hdb_set_sync)(krb5_context, struct HDB *, int);
}HDB;
#define HDB_INTERFACE_VERSION 9
#define HDB_INTERFACE_VERSION 10
struct hdb_method {
int version;