]> err.no Git - yubikey-personalization/commitdiff
fixed= is not n/a for OATH-HOTP.
authorFredrik Thulin <fredrik@yubico.com>
Sat, 2 Apr 2011 11:02:09 +0000 (13:02 +0200)
committerFredrik Thulin <fredrik@yubico.com>
Sat, 2 Apr 2011 11:02:09 +0000 (13:02 +0200)
ykpers.c

index 304ed114307cbea71afa6c37c227d895c76bf361..6f0b95428e4a7f3f78ea5a76e6d3dffa18a70625 100644 (file)
--- 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: */