]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Introduce a new utility function smemclr(), which memsets things to
authorSimon Tatham <anakin@pobox.com>
Sun, 22 Jul 2012 19:51:50 +0000 (19:51 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 22 Jul 2012 19:51:50 +0000 (19:51 +0000)
commit1bbf4c517a188e68d249c5f89d212a41f104a6e3
tree9c9973e7080b2034793573ebae1f45e9d755570e
parent3731db50d17b3107209041d458a4195cc252fd15
Introduce a new utility function smemclr(), which memsets things to
zero but does it in such a way that over-clever compilers hopefully
won't helpfully optimise the call away if you do it just before
freeing something or letting it go out of scope. Use this for
(hopefully) every memset whose job is to destroy sensitive data that
might otherwise be left lying around in the process's memory.

git-svn-id: http://svn.tartarus.org/sgt/putty@9586 cda61777-01e9-0310-a592-d414129be87e
21 files changed:
cmdgen.c
cmdline.c
import.c
misc.c
putty.h
ssh.c
sshaes.c
ssharcf.c
sshbn.c
sshdes.c
sshdss.c
sshmd5.c
sshpubk.c
sshrsa.c
sshsha.c
unix/gtkwin.c
windows/winmisc.c
windows/winpgen.c
windows/winpgnt.c
windows/winstuff.h
x11fwd.c