From: Fredrik Thulin Date: Sat, 2 Apr 2011 11:02:09 +0000 (+0200) Subject: fixed= is not n/a for OATH-HOTP. X-Git-Tag: v1.5.1~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19d820e74a0a42d84b5db6358089374a43dfb7f7;p=yubikey-personalization.old fixed= is not n/a for OATH-HOTP. --- diff --git a/ykpers.c b/ykpers.c index 304ed11..6f0b954 100644 --- a/ykpers.c +++ b/ykpers.c @@ -518,15 +518,12 @@ int ykp_write_config(const YKP_CONFIG *cfg, writer(str_key_value_separator, strlen(str_key_value_separator), userdata); - if (key_bits_in_uid) { - writer("n/a", 3, userdata); - } else { - writer(str_modhex_prefix, - strlen(str_key_value_separator), - userdata); - yubikey_modhex_encode(buffer, (char *)cfg->ykcore_config.fixed, cfg->ykcore_config.fixedSize); - writer(buffer, strlen(buffer), userdata); - } + /* XXX print OATH-HOTP fixed differently based on oath-fixed-modhex etc. */ + writer(str_modhex_prefix, + strlen(str_key_value_separator), + userdata); + yubikey_modhex_encode(buffer, (char *)cfg->ykcore_config.fixed, cfg->ykcore_config.fixedSize); + writer(buffer, strlen(buffer), userdata); writer("\n", 1, userdata); /* uid: */