mit-kdb: support MIT Kerberos 1.16 KDB API changes
[samba.git] / source4 / kdc / mit-kdb / kdb_samba.h
index abca2c166ae42b0adf498d6d8847f5bfd6ed1b27..b9c571f26cbaafb3b010df8efda1b3aa850cf164 100644 (file)
@@ -78,7 +78,7 @@ krb5_error_code kdb_samba_db_put_principal(krb5_context context,
 krb5_error_code kdb_samba_db_delete_principal(krb5_context context,
                                              krb5_const_principal princ);
 
-#if KRB5_KDB_API_VERSION == 8
+#if KRB5_KDB_API_VERSION >= 8
 krb5_error_code kdb_samba_db_iterate(krb5_context context,
                                     char *match_entry,
                                     int (*func)(krb5_pointer, krb5_db_entry *),
@@ -148,12 +148,23 @@ krb5_error_code kdb_samba_db_check_allowed_to_delegate(krb5_context context,
                                                       const krb5_db_entry *server,
                                                       krb5_const_principal proxy);
 
+#if KRB5_KDB_API_VERSION >= 9
 void kdb_samba_db_audit_as_req(krb5_context kcontext,
                               krb5_kdc_req *request,
+                              const krb5_address *local_addr,
+                              const krb5_address *remote_addr,
                               krb5_db_entry *client,
                               krb5_db_entry *server,
                               krb5_timestamp authtime,
                               krb5_error_code error_code);
+#else
+void kdb_samba_db_audit_as_req(krb5_context kcontext,
+                              krb5_kdc_req *request,
+                              krb5_db_entry *client,
+                              krb5_db_entry *server,
+                              krb5_timestamp authtime,
+                              krb5_error_code error_code);
+#endif
 
 /* from kdb_samba_change_pwd.c */