From: Fredrik Thulin Date: Mon, 7 Mar 2011 14:26:37 +0000 (+0100) Subject: 'fixed' is n/a for OATH/CHAL-RESP. X-Git-Tag: v1.5.0~8^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de2fec3e47739b70a384d3a39ec0a706604f88e6;p=yubikey-personalization.old 'fixed' is n/a for OATH/CHAL-RESP. --- diff --git a/ykpers.c b/ykpers.c index 5a1a718..479d7fb 100644 --- a/ykpers.c +++ b/ykpers.c @@ -518,11 +518,15 @@ int ykp_write_config(const YKP_CONFIG *cfg, writer(str_key_value_separator, strlen(str_key_value_separator), userdata); - 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); + 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); + } writer("\n", 1, userdata); /* uid: */