]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix `puttygen-unix-perms': f_open(), PuTTY's wrapper on fopen, now
authorSimon Tatham <anakin@pobox.com>
Tue, 9 Jan 2007 18:14:30 +0000 (18:14 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 9 Jan 2007 18:14:30 +0000 (18:14 +0000)
commit4fa9564c909c589bcccc95d57fae5469063c1759
tree24726f9afbb21a351c53c2d3f4d5bbf032d9c4b4
parentdbbd6eb5ecdad5eb0b010e9ad4997fac53356189
Fix `puttygen-unix-perms': f_open(), PuTTY's wrapper on fopen, now
takes a third argument which is TRUE if the file is being opened for
writing and wants to be created in such a way that it's readable
only to the owner. This is used when saving private keys.

While I'm here, I also use this option when writing session logs, on
the general principle that they probably contain _something_
sensitive.

The new argument is only supported on Unix, for the moment. (I think
writing owner-accessible-only files is the default on Windows.)

[originally from svn r7084]
cmdgen.c
import.c
logging.c
mac/macmisc.c
mac/macstuff.h
sshpubk.c
unix/unix.h
unix/uxmisc.c
windows/winstuff.h