summaryrefslogtreecommitdiff
path: root/tools/token.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-09-20 16:14:20 +0100
committerColin Watson <cjwatson@debian.org>2020-09-20 16:14:20 +0100
commit173bfbf7886608a4a7abbfac6a42ac4bf4a3432d (patch)
treeb97833d8754f257f92d99dd2f5c9e9d557e3f689 /tools/token.c
parent75073d0a8478441cc97a6efa10b566c5fb1dac81 (diff)
New upstream version 1.5.0
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