aboutsummaryrefslogtreecommitdiff
path: root/manage.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-03-12 03:05:34 +0000
committerJames Yonan <james@openvpn.net>2010-03-12 03:05:34 +0000
commit8c7c6be4893ca15061e15ca1e5990c052d77a016 (patch)
tree08a389bea7c1898dc3d6db1bf5f5f621d09f3759 /manage.c
parentAdded stub directive "remote-ip-hint". (diff)
downloadopenvpn-8c7c6be4893ca15061e15ca1e5990c052d77a016.tar.xz
Modified ">PASSWORD:Verification Failed" management interface
notification to include a client reason string: >PASSWORD:Verification Failed: 'AUTH_TYPE' ['REASON_STRING'] git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5468 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--manage.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/manage.c b/manage.c
index f75aedd..e87d996 100644
--- a/manage.c
+++ b/manage.c
@@ -2273,9 +2273,12 @@ management_pre_tunnel_close (struct management *man)
}
void
-management_auth_failure (struct management *man, const char *type)
+management_auth_failure (struct management *man, const char *type, const char *reason)
{
- msg (M_CLIENT, ">PASSWORD:Verification Failed: '%s'", type);
+ if (reason)
+ msg (M_CLIENT, ">PASSWORD:Verification Failed: '%s' ['%s']", type, reason);
+ else
+ msg (M_CLIENT, ">PASSWORD:Verification Failed: '%s'", type);
}
static inline bool