diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-13 00:48:28 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-13 00:48:28 +0100 |
commit | 8367889e8467ce73b051aa8db64b0336aea8ed4b (patch) | |
tree | 99578b1e6969d7eeb19b2578137c1c92de2fc49b /push.c | |
parent | Preparing for v2.2-beta3 (diff) | |
parent | Version 2.1.3b (diff) | |
download | openvpn-8367889e8467ce73b051aa8db64b0336aea8ed4b.tar.xz |
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.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 + } } } |