SYNOPSIS |
#include <dkim.h>
DKIM_STAT dkim_set_key_lookup(
DKIM_LIB *libdkim,
DKIM_STAT (*func) (DKIM *dkim,
unsigned char *buf,
size_t buflen));
);
Defines a function which should do key lookups rather than implementing
the DKIM specification (e.g a DNS lookup). The query method specified
in the signature will be ignored.
|
DESCRIPTION |
Called When |
dkim_set_key_lookup() can be called at any time. |
|
---|
ARGUMENTS |
Argument | Description |
libdkim |
Library-specific instance handle, returned by
dkim_init().
|
func |
A pointer to a function which the library should use in place
of its own code to do key lookups. The function will receive
three things: A DKIM handle
referencing the job being processed, a pointer to a buffer that
should receive the result of the key lookup, and the number of
bytes available there. The function should return an appropriate
DKIM_STAT return code.
If NULL, the internal key lookup implementation, which will do
what the signature requests, will be used.
|
|
RETURN VALUES |
|
NOTES |
- This function is a local addition to the formal API specification
and is experimental only. It may not appear in other implementations.
|