]> err.no Git - yubikey-personalization/commitdiff
add missing static-ticket to list of flags, fix others
authorKlas Lindfors <klas@yubico.com>
Fri, 20 Dec 2013 09:07:00 +0000 (10:07 +0100)
committerKlas Lindfors <klas@yubico.com>
Fri, 20 Dec 2013 09:12:21 +0000 (10:12 +0100)
ticket-first is only available on yubikey 1, short ticket is valid for
output

ykpers_lcl.c

index 20d75f25ad5b2640bba71f24ea3092ba07c84e9b..88959103710146a4dc10cfa3fb8a85fe4cc41fec 100644 (file)
@@ -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 },