]> err.no Git - yubikey-personalization.old/commitdiff
'fixed' is n/a for OATH/CHAL-RESP.
authorFredrik Thulin <fredrik@yubico.com>
Mon, 7 Mar 2011 14:26:37 +0000 (15:26 +0100)
committerFredrik Thulin <fredrik@yubico.com>
Mon, 7 Mar 2011 14:26:37 +0000 (15:26 +0100)
ykpers.c

index 5a1a718873fe077f6c30dad86858107e27416e94..479d7fb16b5bd91ced6885e2c57da721a45fdd23 100644 (file)
--- 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: */