diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-13 00:46:13 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-13 00:46:13 +0100 |
commit | 22178d05f7912fd51a21a32387982394447d90f6 (patch) | |
tree | 3f8fe69338e7a4139909de9c2d60d1f908771b94 /push.c | |
parent | Clarified --explicit-exit-notify man page entry (diff) | |
parent | Version 2.1.3b (diff) | |
download | openvpn-22178d05f7912fd51a21a32387982394447d90f6.tar.xz |
Merge branch 'svn-BETA21' into bugfix2.1
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 + } } } |