Pass a threadsafe ctx into fr_connection_pool create callback
[freeradius.git] / src / modules / rlm_krb5 / krb5.h
index 302eeb4..0d2d584 100644 (file)
@@ -29,6 +29,7 @@ RCSIDH(krb5_h, "$Id$")
 #endif
 
 /* krb5 includes */
+USES_APPLE_DEPRECATED_API
 #include <krb5.h>
 
 typedef struct rlm_krb5_handle {
@@ -78,7 +79,7 @@ typedef struct rlm_krb5_t {
  *     MIT Kerberos uses comm_err, so the macro just expands to a call
  *     to error_message.
  */
-#ifndef HEIMDAL_KRB5
+#ifndef HAVE_KRB5_GET_ERROR_MESSAGE
 #  ifdef ET_COMM_ERR
 #    include <et/com_err.h>
 #  else
@@ -89,6 +90,4 @@ typedef struct rlm_krb5_t {
 char const *rlm_krb5_error(krb5_context context, krb5_error_code code);
 #endif
 
-void *mod_conn_create(void *instance);
-
-int mod_conn_delete(UNUSED void *instance, void *handle);
+void *mod_conn_create(TALLOC_CTX *ctx, void *instance);