]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Added a warning message when passwords are cached in memory.
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Sun, 27 Jul 2008 00:43:49 +0000 (00:43 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Sun, 27 Jul 2008 00:43:49 +0000 (00:43 +0000)
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3127 e7ae566f-a301-0410-adde-c780ea21d3b5

misc.c

diff --git a/misc.c b/misc.c
index c647fd00e0cf5ff7c9031a17ae48fe2cbafa1196..4cdc3de2dda9d0b8dc413e088afc30d992245456 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1480,6 +1480,10 @@ purge_user_pass (struct user_pass *up, const bool force)
       CLEAR (*up);
       up->nocache = nocache;
     }
+  else
+    {
+      msg (M_WARN, "WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this");
+    }
 }
 
 /*