summaryrefslogtreecommitdiff
path: root/tools/token.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-09-20 17:48:15 +0100
committerColin Watson <cjwatson@debian.org>2020-09-20 17:48:15 +0100
commit05fa6dd7724ccfd1c183e6e4bf9d22eb12abea8c (patch)
tree71d3eccc33c93c230b021c72f1fb9cf2247bf6c0 /tools/token.c
parentb77d6ed4d47acbc836f05be0e9f4abeb104e21ff (diff)
parent173bfbf7886608a4a7abbfac6a42ac4bf4a3432d (diff)
Update upstream source from tag 'upstream/1.5.0'
Update to upstream version '1.5.0' with Debian dir 102fd7ed15b138200444754d256b136933185ec2
Diffstat (limited to 'tools/token.c')
-rw-r--r--tools/token.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/token.c b/tools/token.c
index e65f09f..28e4512 100644
--- a/tools/token.c
+++ b/tools/token.c
@@ -112,6 +112,18 @@ print_maxmsgsiz(uint64_t maxmsgsiz)
112} 112}
113 113
114static void 114static void
115print_maxcredcntlst(uint64_t maxcredcntlst)
116{
117 printf("maxcredcntlst: %d\n", (int)maxcredcntlst);
118}
119
120static void
121print_maxcredidlen(uint64_t maxcredidlen)
122{
123 printf("maxcredlen: %d\n", (int)maxcredidlen);
124}
125
126static void
115print_fwversion(uint64_t fwversion) 127print_fwversion(uint64_t fwversion)
116{ 128{
117 printf("fwversion: 0x%x\n", (int)fwversion); 129 printf("fwversion: 0x%x\n", (int)fwversion);
@@ -202,6 +214,12 @@ token_info(int argc, char **argv, char *path)
202 /* print maximum message size */ 214 /* print maximum message size */
203 print_maxmsgsiz(fido_cbor_info_maxmsgsiz(ci)); 215 print_maxmsgsiz(fido_cbor_info_maxmsgsiz(ci));
204 216
217 /* print maximum number of credentials allowed in credential lists */
218 print_maxcredcntlst(fido_cbor_info_maxcredcntlst(ci));
219
220 /* print maximum length of a credential ID */
221 print_maxcredidlen(fido_cbor_info_maxcredidlen(ci));
222
205 /* print firmware version */ 223 /* print firmware version */
206 print_fwversion(fido_cbor_info_fwversion(ci)); 224 print_fwversion(fido_cbor_info_fwversion(ci));
207 225