diff options
author | David Shaw <[email protected]> | 2004-12-16 05:16:09 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-12-16 05:16:09 +0000 |
commit | e79f2db8e41acb031fbaaa9bf8638146c90e4653 (patch) | |
tree | a9c1cefb57d2f1962bf917cedb32f5fb2c268b29 /include/memory.h | |
parent | * apdu.c (apdu_send_le, apdu_send_direct), keylist.c (diff) | |
download | gnupg-e79f2db8e41acb031fbaaa9bf8638146c90e4653.tar.gz gnupg-e79f2db8e41acb031fbaaa9bf8638146c90e4653.zip |
* 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.
Diffstat (limited to '')
-rw-r--r-- | include/memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |