From 5247c0c4e2e2e02180e4cbf56aa68df57d1a8cf9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 3 Feb 2015 12:06:24 -0500 Subject: 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 Reviewed-By: Alexander Bokovoy --- daemons/ipa-kdb/ipa_kdb.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'daemons/ipa-kdb/ipa_kdb.h') 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 */ -- cgit