summaryrefslogtreecommitdiffstats
path: root/src/include/net-server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/net-server.h')
-rw-r--r--src/include/net-server.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/net-server.h b/src/include/net-server.h
index 66bedf63aa..e84bdac242 100644
--- a/src/include/net-server.h
+++ b/src/include/net-server.h
@@ -64,12 +64,11 @@ void loop_free(verto_ctx *ctx);
* to send back when the incoming message is bigger than
* the main loop can accept.
*/
-krb5_error_code dispatch (void *handle,
- struct sockaddr *local_addr,
- const krb5_fulladdr *remote_addr,
- krb5_data *request,
- krb5_data **response,
- int is_tcp);
+typedef void (*loop_respond_fn)(void *arg, krb5_error_code code,
+ krb5_data *response);
+void dispatch(void *handle, struct sockaddr *local_addr,
+ const krb5_fulladdr *remote_addr, krb5_data *request,
+ int is_tcp, loop_respond_fn respond, void *arg);
krb5_error_code make_toolong_error (void *handle, krb5_data **);
/*