diff options
author | Werner Koch <wk@gnupg.org> | 2000-01-24 11:55:48 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2000-01-24 11:55:48 +0000 |
commit | 57eb8c1b9d58df4cc3e026f82244f2928c008e2b (patch) | |
tree | bf97f3b0795a1a10de60ae08255e67d9e578b2c5 /src/secmem.h | |
parent | d5bd6cb82646a4d52870b23d21262c83de77ae47 (diff) | |
download | libgcrypt-57eb8c1b9d58df4cc3e026f82244f2928c008e2b.tar.gz |
See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner Koch
Diffstat (limited to 'src/secmem.h')
-rw-r--r-- | src/secmem.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/secmem.h b/src/secmem.h new file mode 100644 index 00000000..e1feedf0 --- /dev/null +++ b/src/secmem.h @@ -0,0 +1,35 @@ +/* secmem.h - internal definitions for secmem + * Copyright (C) 2000 Free Software Foundation, Inc. + * + * This file is part of GnuPG. + * + * GnuPG is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * GnuPG is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + */ + +#ifndef G10_SECMEM_H +#define G10_SECMEM_H 1 + +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 ); +void secmem_dump_stats(void); +void secmem_set_flags( unsigned flags ); +unsigned secmem_get_flags(void); + +int g10_private_is_secure( const void *p ); + +#endif /* G10_SECMEM_H */ |