diff options
Diffstat (limited to 'examples/info.c')
-rw-r--r-- | examples/info.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/info.c b/examples/info.c index e79729c..ef0d97e 100644 --- a/examples/info.c +++ b/examples/info.c | |||
@@ -131,6 +131,15 @@ print_maxmsgsiz(uint64_t maxmsgsiz) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | /* | 133 | /* |
134 | * Auxiliary function to print an authenticator's firmware version on stdout. | ||
135 | */ | ||
136 | static void | ||
137 | print_fwversion(uint64_t fwversion) | ||
138 | { | ||
139 | printf("fwversion: 0x%x\n", (int)fwversion); | ||
140 | } | ||
141 | |||
142 | /* | ||
134 | * Auxiliary function to print an array of bytes on stdout. | 143 | * Auxiliary function to print an array of bytes on stdout. |
135 | */ | 144 | */ |
136 | static void | 145 | static void |
@@ -190,6 +199,9 @@ getinfo(const char *path) | |||
190 | /* print maximum message size */ | 199 | /* print maximum message size */ |
191 | print_maxmsgsiz(fido_cbor_info_maxmsgsiz(ci)); | 200 | print_maxmsgsiz(fido_cbor_info_maxmsgsiz(ci)); |
192 | 201 | ||
202 | /* print firmware version */ | ||
203 | print_fwversion(fido_cbor_info_fwversion(ci)); | ||
204 | |||
193 | /* print supported pin protocols */ | 205 | /* print supported pin protocols */ |
194 | print_byte_array("pin protocols", fido_cbor_info_protocols_ptr(ci), | 206 | print_byte_array("pin protocols", fido_cbor_info_protocols_ptr(ci), |
195 | fido_cbor_info_protocols_len(ci)); | 207 | fido_cbor_info_protocols_len(ci)); |