projects
/
platform
/
upstream
/
openconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10da29d
)
Add error message when SSL cert fails
author
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 25 Sep 2011 22:27:00 +0000
(23:27 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 25 Sep 2011 22:27:00 +0000
(23:27 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
http.c
patch
|
blob
|
history
diff --git
a/http.c
b/http.c
index
afd92a3
..
bdcaaa6
100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-177,6
+177,13
@@
static int process_http_response(struct openconnect_info *vpninfo, int *result,
buf, colon, print_equals, semicolon?";":"",
semicolon?(semicolon+1):"");
+ /* The server tends to ask for the username and password as
+ usual, even if we've already failed because it didn't like
+ our cert. Thankfully it does give us this hint... */
+ if (!strcmp(colon, "ClientCertAuthFailed"))
+ vpn_progress(vpninfo, PRG_ERR,
+ _("SSL certificate authentication failed\n"));
+
ret = http_add_cookie(vpninfo, colon, equals);
if (ret)
return ret;