From: Klas Lindfors Date: Fri, 20 Dec 2013 09:07:00 +0000 (+0100) Subject: add missing static-ticket to list of flags, fix others X-Git-Tag: v1.14.2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7580f5cf9d52804d133ddca189c7c2eab412bc2;p=yubikey-personalization add missing static-ticket to list of flags, fix others ticket-first is only available on yubikey 1, short ticket is valid for output --- diff --git a/ykpers_lcl.c b/ykpers_lcl.c index 20d75f2..8895910 100644 --- a/ykpers_lcl.c +++ b/ykpers_lcl.c @@ -53,11 +53,12 @@ struct map_st _config_flags_map[] = { { CFGFLAG_OATH_FIXED_MODHEX2, "OATH_FIXED_MODHEX2", 0, capability_has_oath, MODE_OATH_HOTP, ykp_set_cfgflag_OATH_FIXED_MODHEX2 }, { CFGFLAG_OATH_FIXED_MODHEX, "OATH_FIXED_MODHEX", 0, capability_has_oath, MODE_OATH_HOTP, ykp_set_cfgflag_OATH_FIXED_MODHEX }, { CFGFLAG_SEND_REF, "SEND_REF", "sendRef", capability_has_ticket_mods, MODE_OUTPUT, ykp_set_cfgflag_SEND_REF }, - { CFGFLAG_TICKET_FIRST, "TICKET_FIRST", 0, capability_has_ticket_mods, MODE_OUTPUT, ykp_set_cfgflag_TICKET_FIRST }, + { CFGFLAG_TICKET_FIRST, "TICKET_FIRST", 0, capability_has_ticket_first, MODE_OUTPUT, ykp_set_cfgflag_TICKET_FIRST }, { CFGFLAG_PACING_10MS, "PACKING_10MS", "pacing10ms", capability_has_ticket_mods, MODE_OUTPUT, ykp_set_cfgflag_PACING_10MS }, { CFGFLAG_PACING_20MS, "PACING_20MS", "pacing20ms", capability_has_ticket_mods, MODE_OUTPUT, ykp_set_cfgflag_PACING_20MS }, { CFGFLAG_ALLOW_HIDTRIG, "ALLOW_HIDTRIG", 0, capability_has_hidtrig, MODE_OUTPUT, ykp_set_cfgflag_ALLOW_HIDTRIG }, - { CFGFLAG_SHORT_TICKET, "SHORT_TICKET", "shortTicket", capability_has_static_extras, MODE_STATIC_TICKET, ykp_set_cfgflag_SHORT_TICKET }, + { CFGFLAG_STATIC_TICKET, "STATIC_TICKET", "staticTicket", capability_has_static, MODE_STATIC_TICKET, ykp_set_cfgflag_STATIC_TICKET }, + { CFGFLAG_SHORT_TICKET, "SHORT_TICKET", "shortTicket", capability_has_static_extras, MODE_OUTPUT, ykp_set_cfgflag_SHORT_TICKET }, { CFGFLAG_STRONG_PW1, "STRONG_PW1", "strongPw1", capability_has_static_extras, MODE_STATIC_TICKET, ykp_set_cfgflag_STRONG_PW1 }, { CFGFLAG_STRONG_PW2, "STRONG_PW2", "strongPw2", capability_has_static_extras, MODE_STATIC_TICKET, ykp_set_cfgflag_STRONG_PW2 }, { CFGFLAG_MAN_UPDATE, "MAN_UPDATE", "manUpdate", capability_has_static_extras, MODE_STATIC_TICKET, ykp_set_cfgflag_MAN_UPDATE },