summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kdb/ipa_kdb.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-02-03 12:06:24 -0500
committerMartin Kosek <mkosek@redhat.com>2015-02-13 08:54:34 +0100
commit5247c0c4e2e2e02180e4cbf56aa68df57d1a8cf9 (patch)
tree397ba4c6bae45548e74801387a0ef299cf94a15f /daemons/ipa-kdb/ipa_kdb.h
parent9cbbcadd0471a5e4b695c57f49e5a02400848053 (diff)
downloadfreeipa-5247c0c4e2e2e02180e4cbf56aa68df57d1a8cf9.tar.gz
freeipa-5247c0c4e2e2e02180e4cbf56aa68df57d1a8cf9.tar.xz
freeipa-5247c0c4e2e2e02180e4cbf56aa68df57d1a8cf9.zip
Handle DAL ABI change in MIT 1.13
In this new MIT version the DAL interface changes slightly but KRB5_KDB_DAL_MAJOR_VERSION was not changed. Luckily KRB5_KDB_API_VERSION did change and that's enough to know what to compile in. Resolves: https://fedorahosted.org/freeipa/ticket/4861 Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'daemons/ipa-kdb/ipa_kdb.h')
-rw-r--r--daemons/ipa-kdb/ipa_kdb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb.h b/daemons/ipa-kdb/ipa_kdb.h
index b92107bab..ba9968bce 100644
--- a/daemons/ipa-kdb/ipa_kdb.h
+++ b/daemons/ipa-kdb/ipa_kdb.h
@@ -182,10 +182,17 @@ krb5_error_code ipadb_put_principal(krb5_context kcontext,
char **db_args);
krb5_error_code ipadb_delete_principal(krb5_context kcontext,
krb5_const_principal search_for);
+#if KRB5_KDB_API_VERSION < 8
krb5_error_code ipadb_iterate(krb5_context kcontext,
char *match_entry,
int (*func)(krb5_pointer, krb5_db_entry *),
krb5_pointer func_arg);
+#else
+krb5_error_code ipadb_iterate(krb5_context kcontext,
+ char *match_entry,
+ int (*func)(krb5_pointer, krb5_db_entry *),
+ krb5_pointer func_arg, krb5_flags iterflags);
+#endif
/* POLICY FUNCTIONS */