2003-05-13 Moritz Schulte <moritz@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Tue, 13 May 2003 10:10:41 +0000 (10:10 +0000)
committerMoritz Schulte <mo@g10code.com>
Tue, 13 May 2003 10:10:41 +0000 (10:10 +0000)
commit4a0a7c8db5576e40a051e9ba46b62b93dd72e7bd
treea0d17115f9e7af66fc9b524a43ecb01f545a89db
parentd0c0e132fe30212b8cbe97b7a94e8dd1449288de
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.
src/secmem.c