diff options
author | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:17 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:17 +0100 |
commit | 75073d0a8478441cc97a6efa10b566c5fb1dac81 (patch) | |
tree | b73bff259e1b16829ed8b19ee92df2bbbf36ef7d /examples/info.c | |
parent | c923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 (diff) |
New upstream version 1.4.0
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)); |