summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 178eab5d..5e43302c 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1,5 +1,5 @@
/* misc.c
- * Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+ * Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
*
* This file is part of Libgcrypt.
*
@@ -229,3 +229,14 @@ _gcry_log_printf (const char *fmt, ...)
va_end(arg_ptr);
}
}
+
+void
+_gcry_burn_stack (int bytes)
+{
+ char buf[64];
+
+ memset (buf, 0, sizeof buf);
+ bytes -= sizeof buf;
+ if (bytes > 0)
+ _gcry_burn_stack (bytes);
+}