]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winmisc.c
Add a new COMPAT option for environments lacking SecureZeroMemory(),
[PuTTY.git] / windows / winmisc.c
index 2166f4530ab6d9abb970580a48e6c22c15872a9b..c74f1e7a6b90164eb3ab39f0c418073554a5a5da 100644 (file)
@@ -68,6 +68,7 @@ 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.
  */
@@ -75,6 +76,7 @@ void smemclr(void *b, size_t n) {
     if (b && n > 0)
         SecureZeroMemory(b, n);
 }
+#endif
 
 char *get_username(void)
 {