summaryrefslogtreecommitdiffstats
path: root/util/secmem.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-09-13 10:56:45 +0200
committerWerner Koch <wk@gnupg.org>1999-09-13 10:56:45 +0200
commit52139a60cf68661e5023810dbc36a97101948258 (patch)
tree20ded0626eb04b4cce01d207758eb7e073198d5c /util/secmem.c
parentSee ChangeLog: Tue Sep 7 18:44:05 CEST 1999 Werner Koch (diff)
downloadgnupg2-52139a60cf68661e5023810dbc36a97101948258.tar.xz
gnupg2-52139a60cf68661e5023810dbc36a97101948258.zip
See ChangeLog: Mon Sep 13 10:55:14 CEST 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r--util/secmem.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/secmem.c b/util/secmem.c
index 8796e6faf..3f253d6db 100644
--- a/util/secmem.c
+++ b/util/secmem.c
@@ -370,6 +370,16 @@ m_is_secure( const void *p )
return p >= pool && p < (void*)((char*)pool+poolsize);
}
+
+
+/****************
+ * Warning: This code might be called by an interrupt handler
+ * and frankly, thre should really be such a handler,
+ * to make sure that the memory is wiped out.
+ * We hope that the OS wipes out mlocked memory after
+ * receiving a SIGKILL - it really should do so, otherwise
+ * there is no chance to get the secure memory cleaned.
+ */
void
secmem_term()
{