Skip to content

Commit

Permalink
Improve error message when yubikey applet select fails
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Nov 13, 2014
1 parent e6721cb commit 85e7863
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yubikey.c
Expand Up @@ -100,8 +100,9 @@ static int yubikey_cmd(struct openconnect_info *vpninfo, SCARDHANDLE card, int e
return 0;

vpn_progress(vpninfo, errlvl,
_("Failure from ykneo-oath applet after \"%s\": %02x %02x\n"),
desc, buf->data[buf->pos], buf->data[buf->pos+1]);
_("Failure response to \"%s\": %02x %02x\n"),
desc, (unsigned char)buf->data[buf->pos],
(unsigned char)buf->data[buf->pos+1]);
return -EIO;
}

Expand Down

0 comments on commit 85e7863

Please sign in to comment.