(gcrypt.info.gz) Allocation handler
Info Catalog
(gcrypt.info.gz) Progress handler
(gcrypt.info.gz) Handler Functions
(gcrypt.info.gz) Error handler
4.2 Allocation handler
======================
It is possible to make Libgcrypt use special memory allocation
functions instead of the built-in ones.
Memory allocation functions are of the following types:
-- Data type: gcry_handler_alloc_t
This type is defined as: `void *(*gcry_handler_alloc_t) (size_t
n)'.
-- Data type: gcry_handler_secure_check_t
This type is defined as: `int *(*gcry_handler_secure_check_t)
(const void *)'.
-- Data type: gcry_handler_realloc_t
This type is defined as: `void *(*gcry_handler_realloc_t) (void
*p, size_t n)'.
-- Data type: gcry_handler_free_t
This type is defined as: `void *(*gcry_handler_free_t) (void *)'.
Special memory allocation functions can be installed with the
following function:
-- Function: void gcry_set_allocation_handler (gcry_handler_alloc_t
FUNC_ALLOC, gcry_handler_alloc_t FUNC_ALLOC_SECURE,
gcry_handler_secure_check_t FUNC_SECURE_CHECK,
gcry_handler_realloc_t FUNC_REALLOC, gcry_handler_free_t
FUNC_FREE)
Install the provided functions and use them instead of the built-in
functions for doing memory allocation.
Info Catalog
(gcrypt.info.gz) Progress handler
(gcrypt.info.gz) Handler Functions
(gcrypt.info.gz) Error handler
automatically generated byinfo2html