From 5ed5376ccbbf106201bd6ae006161a4ba9bc5c0f Mon Sep 17 00:00:00 2001 From: Will Smart Date: Fri, 22 Dec 2023 11:06:20 -0500 Subject: [PATCH] fido2-token: print maxcredbloblen --- tools/token.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/token.c b/tools/token.c index 366d5a15..12fcb2d2 100644 --- a/tools/token.c +++ b/tools/token.c @@ -169,6 +169,12 @@ print_maxcredcntlst(uint64_t maxcredcntlst) printf("maxcredcntlst: %d\n", (int)maxcredcntlst); } +static void +print_maxcredblob(uint64_t maxcredblob) +{ + printf("maxcredblob: %d\n", (int)maxcredblob); +} + static void print_maxcredidlen(uint64_t maxcredidlen) { @@ -388,6 +394,9 @@ token_info(int argc, char **argv, char *path) /* print maximum length of a credential ID */ print_maxcredidlen(fido_cbor_info_maxcredidlen(ci)); + /* print maximum length of credBlob */ + print_maxcredblob(fido_cbor_info_maxcredbloblen(ci)); + /* print maximum length of serialized largeBlob array */ print_maxlargeblob(fido_cbor_info_maxlargeblob(ci));