X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/962468d4b96c33869e9131eb42a0c784591f5884..cf77c10b4214162ca8f4078b4ace728020d14cab:/windows/winmisc.c diff --git a/windows/winmisc.c b/windows/winmisc.c index f54e8a4d..2166f453 100644 --- a/windows/winmisc.c +++ b/windows/winmisc.c @@ -68,6 +68,14 @@ Filename *filename_deserialise(void *vdata, int maxsize, int *used) return filename_from_str(data); } +/* + * Windows implementation of smemclr (see misc.c) using SecureZeroMemory. + */ +void smemclr(void *b, size_t n) { + if (b && n > 0) + SecureZeroMemory(b, n); +} + char *get_username(void) { DWORD namelen;