dkim_init()

SYNOPSIS
#include <dkim.h>
DKIM_LIB *dkim_init(
	void *(*mallocf)(void *closure, size_t nbytes),
	void (*freef)(void *closure, void *p)
);
Create a new instantiation for the DKIM service, for use signing or verifying messages.
DESCRIPTION
Called When dkim_init() is called when setting up the application. It is used when generating per-message handles for signing and verifying, and is used to declare optional alternate memory allocate and free functions.
ARGUMENTS
ArgumentDescription
malloc Optional alternate memory allocation function. It must take two parameters, a void pointer which is the memory closure specified in calls to dkim_sign() or dkim_verify(), and one the number of bytes to be allocated. This allows memory allocations for a specific message to be made within the same closure.
freef Optional alternate memory release function. It must take two parameters, a void pointer which is the memory closure specified in calls to dkim_sign() or dkim_verify(), and one the pointer to memory to be freed. This allows memory allocations for a specific message to be made within the same closure.
NOTES

Copyright (c) 2005 Sendmail, Inc. and its suppliers. All rights reserved.
By using this file, you agree to the terms and conditions set forth in the LICENSE.