aboutsummaryrefslogtreecommitdiff
path: root/secmem/memory.h
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-06-08 17:29:02 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-06-08 17:29:02 +0200
commit279a8cbf7ce72e92632266a32a36af9eba2bda78 (patch)
treebefc32d5d6b05b9c36b656406c935d765717e8d5 /secmem/memory.h
parentset a default icon (diff)
parentImported Upstream version 0.7.git30891fc (diff)
downloadkrb5-auth-dialog-279a8cbf7ce72e92632266a32a36af9eba2bda78.tar.gz
krb5-auth-dialog-279a8cbf7ce72e92632266a32a36af9eba2bda78.tar.bz2
krb5-auth-dialog-279a8cbf7ce72e92632266a32a36af9eba2bda78.zip
Merge branch 'upstream'
Diffstat (limited to 'secmem/memory.h')
-rw-r--r--secmem/memory.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/secmem/memory.h b/secmem/memory.h
new file mode 100644
index 0000000..c6d04b8
--- /dev/null
+++ b/secmem/memory.h
@@ -0,0 +1,40 @@
+/* Quintuple Agent secure memory allocation
+ * Copyright (C) 1998,1999 Free Software Foundation, Inc.
+ * Copyright (C) 1999,2000 Robert Bihlmeyer <robbe@orcus.priv.at>
+ *
+ * This program 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.
+ *
+ * This program 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _MEMORY_H
+#define _MEMORY_H
+
+#include <sys/types.h>
+
+/* values for flags, hardcoded in secmem.c */
+#define SECMEM_WARN 0
+#define SECMEM_DONT_WARN 1
+#define SECMEM_SUSPEND_WARN 2
+
+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);
+
+#endif /* _MEMORY_H */
bgstack15