Debian Codegraph @

secmem/memory.h

raw symbols SCIP
1 /* Quintuple Agent secure memory allocation
2 * Copyright (C) 1998,1999 Free Software Foundation, Inc.
3 * Copyright (C) 1999,2000 Robert Bihlmeyer <[email protected]>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301.
18 */
19
20 #ifndef _MEMORY_H
21 #define _MEMORY_H
22
23 #include <sys/types.h>
24
25 /* values for flags, hardcoded in secmem.c */
26 #define SECMEM_WARN 0
27 #define SECMEM_DONT_WARN 1
28 #define SECMEM_SUSPEND_WARN 2
29
30 void secmem_init( size_t npool );
31 void secmem_term( void );
32 void *secmem_malloc( size_t size );
33 void *secmem_realloc( void *a, size_t newsize );
34 void secmem_free( void *a );
35 int m_is_secure( const void *p );
36 void secmem_dump_stats(void);
37 void secmem_set_flags( unsigned flags );
38 unsigned secmem_get_flags(void);
39
40 #endif /* _MEMORY_H */