summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-02-27 18:51:28 +0100
committerWerner Koch <wk@gnupg.org>1998-02-27 18:51:28 +0100
commitb13e238a195893b55e09f2c5d73c70b27a040a50 (patch)
tree78f97a94022956ff0b12cb9e1bfcf407077688f7 /include
parentrelease 0.2.9 (diff)
downloadgnupg2-b13e238a195893b55e09f2c5d73c70b27a040a50.tar.xz
gnupg2-b13e238a195893b55e09f2c5d73c70b27a040a50.zip
bug fixesV0-2-10
Diffstat (limited to 'include')
-rw-r--r--include/memory.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/memory.h b/include/memory.h
index f2048e291..d9dd295a9 100644
--- a/include/memory.h
+++ b/include/memory.h
@@ -33,7 +33,7 @@
#define m_realloc(n,m) m_debug_realloc((n),(m), M_DBGINFO(__LINE__) )
#define m_free(n) m_debug_free((n), M_DBGINFO(__LINE__) )
#define m_check(n) m_debug_check((n), M_DBGINFO(__LINE__) )
-#define m_copy(a) m_debug_copy((a), M_DBGINFO(__LINE__) )
+/*#define m_copy(a) m_debug_copy((a), M_DBGINFO(__LINE__) )*/
#define m_strdup(a) m_debug_strdup((a), M_DBGINFO(__LINE__) )
void *m_debug_alloc( size_t n, const char *info );
@@ -43,7 +43,7 @@ void *m_debug_alloc_secure_clear( size_t n, const char *info );
void *m_debug_realloc( void *a, size_t n, const char *info );
void m_debug_free( void *p, const char *info );
void m_debug_check( const void *a, const char *info );
-void *m_debug_copy( const void *a, const char *info );
+/*void *m_debug_copy( const void *a, const char *info );*/
char *m_debug_strdup( const char *a, const char *info );
#else
@@ -54,18 +54,19 @@ void *m_alloc_secure_clear( size_t n );
void *m_realloc( void *a, size_t n );
void m_free( void *p );
void m_check( const void *a );
-void *m_copy( const void *a );
+/*void *m_copy( const void *a );*/
char *m_strdup( const char * a);
#endif
size_t m_size( const void *a );
-int m_is_secure( const void *p );
/*-- secmem.c --*/
void secmem_init( size_t npool );
void secmem_term( void );
void *secmem_malloc( size_t size );
+void *secmem_realloc( void *a, size_t newsize );
void secmem_free( void *a );
+int m_is_secure( const void *p );
void secmem_dump_stats(void);
void secmem_set_flags( unsigned flags );
unsigned secmem_get_flags(void);