static void me_sasl(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static void me_mechlist(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
-static void abort_sasl(struct Client *);
-static void abort_sasl_exit(hook_data_client_exit *);
+static void abort_sasl(void *);
+static void abort_sasl_exit(void *);
static unsigned int CLICAP_SASL = 0;
static char mechlist_buf[BUFSIZE];
&authenticate_msgtab, &sasl_msgtab, &mechlist_msgtab, NULL
};
mapi_hfn_list_av1 sasl_hfnlist[] = {
- { "new_local_user", (hookfn) abort_sasl },
- { "client_exit", (hookfn) abort_sasl_exit },
+ { "new_local_user", abort_sasl },
+ { "client_exit", abort_sasl_exit },
{ NULL, NULL }
};
* registering anyway, abort the exchange.
*/
static void
-abort_sasl(struct Client *data)
+abort_sasl(void *data_)
{
+ struct Client *data = data_;
if(data->localClient->sasl_out == 0 || data->localClient->sasl_complete)
return;
}
static void
-abort_sasl_exit(hook_data_client_exit *data)
+abort_sasl_exit(void *data_)
{
+ hook_data_client_exit *data = data_;
if (data->target->localClient)
abort_sasl(data->target);
}