X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/08b62a6c691fe0e772c74de9d60803afcb7d2aa9..bc07424dca80830704295cc1cfee04da75479f8c:/secnet.h diff --git a/secnet.h b/secnet.h index ead7471..986ef26 100644 --- a/secnet.h +++ b/secnet.h @@ -3,6 +3,8 @@ #ifndef secnet_h #define secnet_h +#define ADNS_FEATURE_MANYAF + #include "config.h" #include #include @@ -295,7 +297,10 @@ struct buffer_if; actually found in the DNS, which may be bigger if addrs is equal to MAX_PEER_ADDRS (ie there were too many). */ typedef void resolve_answer_fn(void *st, const struct comm_addr *addrs, - int naddrs, int was_naddrs); + int naddrs, int was_naddrs, + const char *name, const char *failwhy); + /* name is the same ptr as passed to request, so its lifetime must + * be suitable*/ typedef bool_t resolve_request_fn(void *st, cstring_t name, int remoteport, struct comm_if *comm, resolve_answer_fn *cb, void *cst);