summaryrefslogtreecommitdiffstats
path: root/misc.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 23:31:16 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-17 23:31:16 +0000
commit093e7eba18610c1b154dc0282ef572626f7d34f9 (patch)
treea0e5235623b8ba641926936fed9cf59fe0074d6e /misc.h
parent73b7e6988491781703859675b0c86051e79a7d9d (diff)
downloadopenvpn-093e7eba18610c1b154dc0282ef572626f7d34f9.tar.gz
openvpn-093e7eba18610c1b154dc0282ef572626f7d34f9.tar.xz
openvpn-093e7eba18610c1b154dc0282ef572626f7d34f9.zip
Previously, OpenVPN might log a client's auth-user-pass
password if the verbosity was set to a high debug level such as 7 or higher. Normally this would only be used by developers. Now, even at high debug levels, the password will not be output. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3073 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index 30f6eaf..ffc7e24 100644
--- a/misc.h
+++ b/misc.h
@@ -265,6 +265,9 @@ void purge_user_pass (struct user_pass *up, const bool force);
*/
const char *safe_print (const char *str, struct gc_arena *gc);
+/* returns true if environmental variable safe to print to log */
+bool env_safe_to_print (const char *str);
+
/*
* A sleep function that services the management layer for n
* seconds rather than doing nothing.