diff options
Diffstat (limited to 'src/fido/types.h')
-rw-r--r-- | src/fido/types.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/fido/types.h b/src/fido/types.h index 5df5e36..cce1a44 100644 --- a/src/fido/types.h +++ b/src/fido/types.h | |||
@@ -175,13 +175,15 @@ typedef struct fido_byte_array { | |||
175 | } fido_byte_array_t; | 175 | } fido_byte_array_t; |
176 | 176 | ||
177 | typedef struct fido_cbor_info { | 177 | typedef struct fido_cbor_info { |
178 | fido_str_array_t versions; /* supported versions: fido2|u2f */ | 178 | fido_str_array_t versions; /* supported versions: fido2|u2f */ |
179 | fido_str_array_t extensions; /* list of supported extensions */ | 179 | fido_str_array_t extensions; /* list of supported extensions */ |
180 | unsigned char aaguid[16]; /* aaguid */ | 180 | unsigned char aaguid[16]; /* aaguid */ |
181 | fido_opt_array_t options; /* list of supported options */ | 181 | fido_opt_array_t options; /* list of supported options */ |
182 | uint64_t maxmsgsiz; /* maximum message size */ | 182 | uint64_t maxmsgsiz; /* maximum message size */ |
183 | fido_byte_array_t protocols; /* supported pin protocols */ | 183 | fido_byte_array_t protocols; /* supported pin protocols */ |
184 | uint64_t fwversion; /* firmware version */ | 184 | uint64_t maxcredcntlst; /* max number of credentials in list */ |
185 | uint64_t maxcredidlen; /* max credential ID length */ | ||
186 | uint64_t fwversion; /* firmware version */ | ||
185 | } fido_cbor_info_t; | 187 | } fido_cbor_info_t; |
186 | 188 | ||
187 | typedef struct fido_dev_info { | 189 | typedef struct fido_dev_info { |
@@ -213,6 +215,10 @@ typedef struct fido_dev { | |||
213 | char *path; /* device path */ | 215 | char *path; /* device path */ |
214 | void *io_handle; /* abstract i/o handle */ | 216 | void *io_handle; /* abstract i/o handle */ |
215 | fido_dev_io_t io; /* i/o functions */ | 217 | fido_dev_io_t io; /* i/o functions */ |
218 | bool io_own; /* device has own io/transport */ | ||
219 | size_t rx_len; /* length of HID input reports */ | ||
220 | size_t tx_len; /* length of HID output reports */ | ||
221 | int flags; /* internal flags; see FIDO_DEV_* */ | ||
216 | fido_dev_transport_t transport; /* transport functions */ | 222 | fido_dev_transport_t transport; /* transport functions */ |
217 | } fido_dev_t; | 223 | } fido_dev_t; |
218 | 224 | ||