libgcrypt/src (secmem.c)
cvs user mo
cvs@cvs.gnupg.org
Tue, 13 May 2003 12:10:52 +0200
Date: Tuesday, May 13, 2003 @ 12:10:42
Author: mo
Path: /cvs/gnupg/libgcrypt/src
Modified: secmem.c
2003-05-13 Moritz Schulte <moritz@g10code.com>
* secmem.c (stats_update): New function.
(BLOCK_HEAD_SIZE): New symbol.
(MB_FLAG_ACTIVE): New symbol.
(ADDR_TO_BLOCK, BLOCK_VALID): New macros.
(mb_get_next): New function.
(mb_get_prev): New function.
(mb_merge): New function.
(mb_get_new): New function.
(unused_blocks): Removed variable.
(init_pool): Initialize new memory pool.
(_gcry_secmem_malloc): Use new heap management code.
(_gcry_secmem_free): Likewise.
(_gcry_secmem_realloc): Likewise.
Renamed type MEMBLOCK to memblock_t.
----------+
secmem.c | 730 ++++++++++++++++++++++++++++++++++++-------------------------
1 files changed, 439 insertions(+), 291 deletions(-)