aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-08 04:02:56 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2006-11-08 04:02:56 +0000
commit2270775d8c17ce040818887cf8e3b288182660b6 (patch)
treeda2a41df7d150050696ff9500fa32040e8664865 /misc.c
parentPROTO_TCPv4 is never used as an index into (diff)
downloadopenvpn-2270775d8c17ce040818887cf8e3b288182660b6.tar.xz
Added #ifdefed out AUTO_USERID feature.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1436 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index fb18448..ed3960c 100644
--- a/misc.c
+++ b/misc.c
@@ -1277,6 +1277,11 @@ get_user_pass (struct user_pass *up,
msg (M_FATAL, "Error reading username and password (must be on two consecutive lines) from %s authfile: %s",
prefix,
auth_file);
+
+#if defined(AUTO_USERID) && defined(WIN32)
+ if (!strncmp (up->username, "AUTO_USERID", 11))
+ get_auto_userid (up->username, USER_PASS_LEN);
+#endif
}
fclose (fp);