From 8ff8c33d1d720a227db193c2105cbdcf119e5746 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Sun, 4 Dec 2005 01:30:35 +0000 Subject: - implemented RSA, only signing and verifying esma_pkcs1 padded - removed gmp-helper: chunk_to_mpz is now done with gmp functions, prime generation in prime-pool - added prime-pool (needs priority fix) - proof of concept RSA authentication - mpz uses LEAK_DETECTIVE - configuration-manager supports rsa keys --- Source/charon/utils/allocator.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'Source/charon/utils/allocator.h') diff --git a/Source/charon/utils/allocator.h b/Source/charon/utils/allocator.h index 7ea0fb60d..a2f3292b6 100644 --- a/Source/charon/utils/allocator.h +++ b/Source/charon/utils/allocator.h @@ -172,7 +172,15 @@ void (*report_memory_leaks) (allocator_t *this); }; - + + /** + * @brief Initialize the allocator. + * + * Setup the allocator (currently set + * allocation functions for libgmp) + */ + void allocator_init(); + /** * @brief Global allocater_t object. * @@ -316,7 +324,14 @@ * * @ingroup utils */ - #define report_memory_leaks(void) {} + #define report_memory_leaks() {} + + /** + * Initialize the allocator. + * + * @ingroup utils + */ + #define allocator_init() {} #endif #endif /*ALLOCATOR_H_*/ -- cgit v1.2.3