From e79f2db8e41acb031fbaaa9bf8638146c90e4653 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 16 Dec 2004 05:16:09 +0000 Subject: * g10.c (main): Add --require-secmem/--no-require-secmem to cause gpg to exit if it cannot lock memory. Also remove --nrsign-key and --nrlsign-key since this can better be done via --edit-key. * secmem.c (secmem_init): Return a flag to indicate whether we got the lock. * memory.h: Return a flag to indicate whether we got the lock. --- include/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/memory.h') diff --git a/include/memory.h b/include/memory.h index 56f34ad00..377c2b702 100644 --- a/include/memory.h +++ b/include/memory.h @@ -66,7 +66,7 @@ size_t m_size( const void *a ); void m_print_stats(const char *prefix); /*-- secmem.c --*/ -void secmem_init( size_t npool ); +int secmem_init( size_t npool ); void secmem_term( void ); void *secmem_malloc( size_t size ); void *secmem_realloc( void *a, size_t newsize ); -- cgit v1.2.3