diff options
author | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:34 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-04-18 09:48:21 +0100 |
commit | df7226c4b684fd229dc046388225c69ded877721 (patch) | |
tree | e69014e1ee868c4ec178b8a36baae7de31786beb /examples/info.c | |
parent | f794345c2d734f593da8ed7754e5dbb5809c688d (diff) | |
parent | 75073d0a8478441cc97a6efa10b566c5fb1dac81 (diff) |
Update upstream source from tag 'upstream/1.4.0'
Update to upstream version '1.4.0'
with Debian dir 64889867df57bd13ea0cb964223697d378d391ce
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)); |