SYNOPSIS |
#include <dkim.h>
void dkim_dns_set_query_cancel(
DKIM_LIB *libopendkim,
int (*func)(void *, void *)
);
Declares the function to be used by a libopendkim instance when it needs to
cancel a DNS query already in progress. By default, a stub function that
does nothing is set, since there is no way to cancel a query in the standard
UNIX resolver library.
The function will be passed the following arguments:
- An opaque DNS service handle as previously specified by a call to
dkim_dns_set_query_service()
- A handle for a previously initiated DNS query as returned by the
function provided by
dkim_dns_set_query_start()
The function is expected to return one of the following:
- DKIM_DNS_SUCCESS -- query was successfully canceled
- DKIM_DNS_ERROR -- an error occurred
|