diff options
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"); |