1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/windows
Simon Tatham 395c228bee Adopt a new universal implementation of smemclr().
This new implementation uses the same optimisation-barrier technique
that I used in various places in testsc: have a no-op function, and a
volatile function pointer pointing at it, and then call through the
function pointer, so that nothing actually happens (apart from the
physical call and return) but the compiler has to assume that
_anything_ might have happened.

Doing this just after a memset enforces that the compiler can't have
thrown away the memset, because the called function might (for
example) check that all the memory really is zero and abort if not.

I've been turning this over in my mind ever since coming up with the
technique for testsc. I think it's far more robust than the previous
smemclr technique: so much so that I'm switching to using it
_everywhere_, and no longer using platform alternatives like Windows's
SecureZeroMemory().
2021-04-18 08:30:44 +01:00
..
utils New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
CMakeLists.txt Adopt a new universal implementation of smemclr(). 2021-04-18 08:30:44 +01:00
installer.wxs Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
make_install_images.sh Remove white dialog background in MSI user interface. 2020-06-21 16:39:47 +01:00
msifixup.py Remove white dialog background in MSI user interface. 2020-06-21 16:39:47 +01:00
pageant-rc.h winpgnt: add GUI button to re-encrypt an SSH-2 key. 2021-04-04 09:44:00 +01:00
pageant.ico Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
pageant.mft Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
pageant.rc winpgnt: add GUI button to re-encrypt an SSH-2 key. 2021-04-04 09:44:00 +01:00
pageants.ico Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
plink.rc `win-versioninfo': all builds of all Windows binaries now contain 2005-10-04 14:13:28 +00:00
pscp.ico Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
pscp.rc `win-versioninfo': all builds of all Windows binaries now contain 2005-10-04 14:13:28 +00:00
psftp.rc `win-versioninfo': all builds of all Windows binaries now contain 2005-10-04 14:13:28 +00:00
putty.ico Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
putty.mft Windows 10: add per monitor DPI awareness support. 2021-04-02 19:04:19 +01:00
putty.rc Fix typo in application description. 2021-02-21 23:07:02 +00:00
puttycfg.ico Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
puttygen-rc.h PuTTYgen: option to control Argon2 flavour. 2021-02-23 18:26:50 +00:00
puttygen.ico Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
puttygen.mft Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
puttygen.rc Windows PuTTYgen: support configurable fingerprint type. 2021-03-13 11:01:35 +00:00
puttyins.ico `installer.ico' doesn't fit into 8.3, so gets truncated to INSTALLE.ICO in 2007-02-06 22:39:15 +00:00
puttytel.mft Windows 10: add per monitor DPI awareness support. 2021-04-02 19:04:19 +01:00
puttytel.rc Tweak version string resources for EMBED_CHM. 2019-03-16 12:25:23 +00:00
rcstuff.h Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
README-msi.txt Remove note about .CHM on network drives. 2019-03-18 21:53:45 +00:00
sizetip.c Formatting change to braces around one case of a switch. 2020-02-16 11:26:21 +00:00
version.rc2 FIXME about Windows resource CHMfulness hint. 2019-03-18 22:02:13 +00:00
website.url Switch chiark URLs to https. 2017-05-07 16:29:01 +01:00
win_res.h GUI host key prompts: add 'More info' subdialog. 2021-03-13 13:54:59 +00:00
win_res.rc2 GUI host key prompts: add 'More info' subdialog. 2021-03-13 13:54:59 +00:00
wincapi.h Remove the NO_SECURITY compile-time option. 2021-04-17 13:53:02 +01:00
wincfg.c Rework per-backend GUI configuration. 2020-03-10 21:27:57 +00:00
wincliloop.c Fix a few memory leaks spotted by Coverity. 2021-04-10 08:59:27 +01:00
wincons.c Console host key prompts: add 'more info' action. 2021-03-13 13:54:59 +00:00
winctrls.c dialog system: add a side-by-side alignment feature. 2021-04-10 09:43:25 +01:00
windlg.c Fix a mismatch of GetWindowLong with GWLP_*. 2021-04-11 09:55:21 +01:00
window.c Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
wingss.c Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
winhandl.c Fix a few 'triple letter in place of double' typos. 2021-01-17 09:18:42 +00:00
winhelp.c Remove most traces of WinHelp support. 2019-03-26 00:27:04 +00:00
winhelp.h winpgnt: add context help for 'Add Key (encrypted)' button. 2021-04-04 09:35:27 +01:00
winhelp.rc2 Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
winhsock.c Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
winjump.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
winnet.c Remove #ifdef COVERITY. 2021-04-10 14:45:24 +01:00
winnohlp.c Stop looking for putty.chm alongside the binary. 2019-03-16 12:25:23 +00:00
winnoise.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
winnojmp.c Fix up svn:eol-style and svn:keywords on new files. 2010-12-27 00:24:48 +00:00
winnpc.c Remove the NO_SECURITY compile-time option. 2021-04-17 13:53:02 +01:00
winnps.c Remove the NO_SECURITY compile-time option. 2021-04-17 13:53:02 +01:00
winpgen.c No border on Windows Pageant/PuTTYgen About boxes. 2021-04-06 21:14:51 +01:00
winpgnt.c Remove stub functions that are no longer needed. 2021-04-18 08:30:44 +01:00
winpgntc.c Remove the NO_SECURITY compile-time option. 2021-04-17 13:53:02 +01:00
winplink.c winplink: create an Ldisc for the backend to use. 2021-04-08 12:43:35 +01:00
winprint.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
winproxy.c Make the plug_log type code into an enum. 2020-02-07 19:17:45 +00:00
winseat.h GUI PuTTY: stop using the global 'hwnd'. 2020-02-02 10:02:10 +00:00
winsecur.h Remove the NO_SECURITY compile-time option. 2021-04-17 13:53:02 +01:00
winselcli.c Const-correctness in do_select() return value. 2020-01-04 13:52:22 +00:00
winselgui.c Const-correctness in do_select() return value. 2020-01-04 13:52:22 +00:00
winser.c Fixes from an attempted winelib build. 2021-04-09 12:26:15 +01:00
winsftp.c winsftp.c: avoid creating multiple netevents. 2020-02-09 08:19:21 +00:00
winshare.c Remove the NO_SECURITY compile-time option. 2021-04-17 13:53:02 +01:00
winsocks.c Auxiliary application: 'psocks', a simple SOCKS server. 2020-02-23 16:36:27 +00:00
winstore.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
winstuff.h New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
winucs.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
winx11.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00