summaryrefslogtreecommitdiffstats
path: root/push.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-11-13 00:48:28 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-13 00:48:28 +0100
commit8367889e8467ce73b051aa8db64b0336aea8ed4b (patch)
tree99578b1e6969d7eeb19b2578137c1c92de2fc49b /push.c
parent0bb41e58782ae9834a61491c5964bc9816b76bc8 (diff)
parent20a4c12783144d798c6b7446bae8920fdfea7adc (diff)
downloadopenvpn-8367889e8467ce73b051aa8db64b0336aea8ed4b.tar.gz
openvpn-8367889e8467ce73b051aa8db64b0336aea8ed4b.tar.xz
openvpn-8367889e8467ce73b051aa8db64b0336aea8ed4b.zip
Merge branch 'svn-BETA21' into beta2.2
Conflicts: version.m4 - Reset version.m4 to a more neutral version number Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'push.c')
-rw-r--r--push.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/push.c b/push.c
index 40e64c3..08c7f99 100644
--- a/push.c
+++ b/push.c
@@ -68,8 +68,18 @@ receive_auth_failed (struct context *c, const struct buffer *buffer)
if (buf_string_compare_advance (&buf, "AUTH_FAILED,") && BLEN (&buf))
reason = BSTR (&buf);
management_auth_failure (management, UP_TYPE_AUTH, reason);
- }
+ } else
#endif
+ {
+#ifdef ENABLE_CLIENT_CR
+ struct buffer buf = *buffer;
+ if (buf_string_match_head_str (&buf, "AUTH_FAILED,CRV1:") && BLEN (&buf))
+ {
+ buf_advance (&buf, 12); /* Length of "AUTH_FAILED," substring */
+ ssl_put_auth_challenge (BSTR (&buf));
+ }
+#endif
+ }
}
}