aboutsummaryrefslogtreecommitdiff
path: root/win32.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 22:41:15 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 22:41:15 +0000
commit73b7e6988491781703859675b0c86051e79a7d9d (patch)
tree01dc369501ab7a335aff4c568d16bccbdf4378b4 /win32.h
parentCall prng_init after fork in background process (diff)
downloadopenvpn-73b7e6988491781703859675b0c86051e79a7d9d.tar.xz
gen_path now rejects filenames that match Windows
device names such as CON, NUL, LPT1, etc. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3072 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--win32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32.h b/win32.h
index 2697ae2..8cf8af2 100644
--- a/win32.h
+++ b/win32.h
@@ -247,5 +247,8 @@ char *getpass (const char *prompt);
/* Set Win32 security attributes structure to allow all access */
bool init_security_attributes_allow_all (struct security_attributes *obj);
+/* return true if filename is safe to be used on Windows */
+bool win_safe_filename (const char *fn);
+
#endif
#endif