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