diff options
author | Tom Yu <tlyu@mit.edu> | 2014-08-02 14:20:33 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2014-08-02 14:20:33 -0400 |
commit | ab009b8568d9b64b7e992ecdb98114e895b4a7ff (patch) | |
tree | f1a4df70df5171ae34051e025ae813372f5d83d8 /src/include | |
parent | 0279b74c6744a8841eba8d16dbfbebb2592718e9 (diff) | |
download | krb5-ab009b8568d9b64b7e992ecdb98114e895b4a7ff.zip krb5-ab009b8568d9b64b7e992ecdb98114e895b4a7ff.tar.gz krb5-ab009b8568d9b64b7e992ecdb98114e895b4a7ff.tar.bz2 |
Add flag word to KDB iteration APIs
ticket: 7977 (new)
subject: Enable unlocked KDB iteration
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/kdb.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/kdb.h b/src/include/kdb.h index 69817bc..e89c7aa 100644 --- a/src/include/kdb.h +++ b/src/include/kdb.h @@ -69,7 +69,7 @@ /* This version will be incremented when incompatible changes are made to the * KDB API, and will be kept in sync with the libkdb major version. */ -#define KRB5_KDB_API_VERSION 7 +#define KRB5_KDB_API_VERSION 8 /* Salt types */ #define KRB5_KDB_SALTTYPE_NORMAL 0 @@ -131,6 +131,10 @@ #define KRB5_KDB_FLAGS_S4U ( KRB5_KDB_FLAG_PROTOCOL_TRANSITION | \ KRB5_KDB_FLAG_CONSTRAINED_DELEGATION ) +/* KDB iteration flags */ +#define KRB5_DB_ITER_WRITE 0x00000001 +#define KRB5_DB_ITER_REV 0x00000002 + /* String attribute names recognized by krb5 */ #define KRB5_KDB_SK_SESSION_ENCTYPES "session_enctypes" @@ -380,7 +384,7 @@ krb5_error_code krb5_db_delete_principal ( krb5_context kcontext, krb5_error_code krb5_db_iterate ( krb5_context kcontext, char *match_entry, int (*func) (krb5_pointer, krb5_db_entry *), - krb5_pointer func_arg ); + krb5_pointer func_arg, krb5_flags iterflags ); krb5_error_code krb5_db_store_master_key ( krb5_context kcontext, @@ -1016,7 +1020,7 @@ typedef struct _kdb_vftabl { krb5_error_code (*iterate)(krb5_context kcontext, char *match_entry, int (*func)(krb5_pointer, krb5_db_entry *), - krb5_pointer func_arg); + krb5_pointer func_arg, krb5_flags iterflags); /* * Optional: Create a password policy entry. Return an error if the policy |