diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-26 23:22:12 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-26 23:22:24 +0200 |
commit | 5871d08a3a519dbc54261c8a18e649ec9cc8bd7f (patch) | |
tree | 8c6ce34d5b0b9edec0abdacedbeec49efb969cd7 /src/async.c | |
parent | 36690c7203f0e46665f328fbe82ae3bd573cc6ff (diff) | |
download | fastd-5871d08a3a519dbc54261c8a18e649ec9cc8bd7f.tar fastd-5871d08a3a519dbc54261c8a18e649ec9cc8bd7f.zip |
Make on-verify support optional
Diffstat (limited to 'src/async.c')
-rw-r--r-- | src/async.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/async.c b/src/async.c index 982543d..ed8370f 100644 --- a/src/async.c +++ b/src/async.c @@ -53,6 +53,8 @@ static void handle_resolve_return(const fastd_async_resolve_return_t *resolve_re fastd_peer_handle_resolve(peer, remote, resolve_return->n_addr, resolve_return->addr); } +#ifdef WITH_VERIFY + static void handle_verify_return(const fastd_async_verify_return_t *verify_return) { fastd_peer_t *peer = fastd_peer_find_by_id(verify_return->peer_id); if (!peer) @@ -67,6 +69,9 @@ static void handle_verify_return(const fastd_async_verify_return_t *verify_retur verify_return->method, verify_return->protocol_data, verify_return->ok); } +#endif + + void fastd_async_handle(void) { fastd_async_hdr_t header; struct iovec vec[2] = { @@ -97,9 +102,11 @@ void fastd_async_handle(void) { handle_resolve_return((const fastd_async_resolve_return_t *)buf); break; +#ifdef WITH_VERIFY case ASYNC_TYPE_VERIFY_RETURN: handle_verify_return((const fastd_async_verify_return_t *)buf); break; +#endif default: exit_bug("fastd_async_handle: unknown type"); |