Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add error message when SSL cert fails
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 25, 2011
1 parent 10da29d commit 825ae45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions http.c
Expand Up @@ -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;
Expand Down

0 comments on commit 825ae45

Please sign in to comment.