diff options
author | Moritz Schulte <mo@g10code.com> | 2003-03-01 23:22:12 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2003-03-01 23:22:12 +0000 |
commit | 5b5237c23ffda1415f239407eeed3983a8e0adbe (patch) | |
tree | b3c648553cbdcb8d698f9406a94e344f26e7daea /src/misc.c | |
parent | 622a9c5c3e7aaf1bb0296ca1d072cc57e8469135 (diff) | |
download | libgcrypt-5b5237c23ffda1415f239407eeed3983a8e0adbe.tar.gz |
2003-02-28 Moritz Schulte <moritz@g10code.com>
* secmem.c (DEFAULT_PAGESIZE): New symbol.
(init_pool): Use DEFAULT_PAGESIZE.
2003-02-23 Moritz Schulte <moritz@g10code.com>
* secmem.h: Fix typo in declaration of _gcry_secmem_term.
* sexp.c: Move macro definitions of `digitp', `octdigit', `alphap'
and `hexdigit' ...
* g10lib.h: ... here.
* misc.c (_gcry_burn_stack): New function (former name:
burn_stack).
* g10lib.h (burn_stack): Declare _gcry_burn_stack().
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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); +} |