with some argument ARG, then -ARG will be appended to the
username string that is sent to the server.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2259
e7ae566f-a301-0410-adde-
c780ea21d3b5
}
void
-get_user_pass_auto_userid (struct user_pass *up)
+get_user_pass_auto_userid (struct user_pass *up, const char *tag)
{
struct gc_arena gc = gc_new ();
MD5_CTX ctx;
{
buf_printf (&buf, "UNKNOWN");
}
+ if (tag && strcmp (tag, "stdin"))
+ buf_printf (&buf, "-%s", tag);
up->defined = true;
gc_free (&gc);
void configure_path (void);
#if AUTO_USERID
-void get_user_pass_auto_userid (struct user_pass *up);
+void get_user_pass_auto_userid (struct user_pass *up, const char *tag);
#endif
#endif
if (!auth_user_pass.defined)
{
#if AUTO_USERID
- get_user_pass_auto_userid (&auth_user_pass);
+ get_user_pass_auto_userid (&auth_user_pass, auth_file);
#else
get_user_pass (&auth_user_pass, auth_file, UP_TYPE_AUTH, GET_USER_PASS_MANAGEMENT|GET_USER_PASS_SENSITIVE);
#endif