Commit d93bf0dc authored by David Woodhouse's avatar David Woodhouse

Make yubikey less picky about what it'll generate tokens for

The protocol should validate which form fields are OK; no need to apply
CSTP-specific filters (which are now out of date) in the yubikey code.
Signed-off-by: default avatarDavid Woodhouse <>
parent 6a2ce5d5
......@@ -480,8 +480,7 @@ int can_gen_yubikey_code(struct openconnect_info *vpninfo,
struct oc_auth_form *form,
struct oc_form_opt *opt)
if ((strcmp(opt->name, "secondary_password") != 0) ||
if (vpninfo->token_bypassed)
return -EINVAL;
if (vpninfo->token_tries == 0) {
vpn_progress(vpninfo, PRG_DEBUG,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment