summaryrefslogtreecommitdiffstats
path: root/src/include/net-server.h
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-10-03 19:13:39 +0000
committerGreg Hudson <ghudson@mit.edu>2011-10-03 19:13:39 +0000
commitaded0f894fce27ee7fd94f8ff204517160d67423 (patch)
treedcf8c88637110bdb346c5b93988fab2fadf0e656 /src/include/net-server.h
parent41944ee6ad71cb6f3c443bba77f184e335388b64 (diff)
downloadkrb5-aded0f894fce27ee7fd94f8ff204517160d67423.tar.gz
krb5-aded0f894fce27ee7fd94f8ff204517160d67423.tar.xz
krb5-aded0f894fce27ee7fd94f8ff204517160d67423.zip
Make dispatch() respond via a callback
From npmccallum@redhat.com with changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25291 dc483132-0cff-0310-8789-dd5450dbe970
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 66bedf63a..e84bdac24 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 **);
/*