57 Commits
Author SHA1 Message Date
Robin Krahl bf61e71612 Release v0.4.0 0.4.0 2026-03-23 15:23:39 +01:00
Robin Krahl 4a8fc676fa Update to ctaphid-dispatch v0.4 2026-03-23 15:21:27 +01:00
Robin Krahl 9655063e49 Update to trussed-core v0.2 2026-03-23 15:21:23 +01:00
Sosthène GuédonandRobin Krahl 593eb2c1f1 Update to heapless 0.9 2026-03-23 15:21:18 +01:00
Robin Krahl cac5ada15f Add trusted publishing 2026-03-20 16:03:58 +01:00
Robin Krahl 998db117a6 Release v0.3.0
This release updates ctaphid-dispatch to v0.3.0 and makes usbd-ctaphid
also generic over the buffer size.
0.3.0
2025-03-25 22:36:09 +01:00
Robin Krahl 26e608afee Update to ctaphid-dispatch v0.3.0 and remove MESSAGE_SIZE constant
ctaphid-dispatch v0.3.0 makes Dispatch generic over the message size
instead of using a constant value.  This patch adapts usbd-ctaphid to
this patch and changes the usbd-ctaphid buffer to use the same buffer
size as ctaphid-dispatch.  (Previously, we used 3072 and
ctaphid-dispatch used 7609.)  This means that we no longer need the
MESSAGE_SIZE constant and can remove it.
2025-03-25 22:36:06 +01:00
Robin Krahl b505770bc9 Add missing log-trace feature
This fixes a new compiler warning.
2025-03-21 19:01:19 +01:00
Robin Krahl a89060d842 Release v0.2.0 0.2.0 2025-01-09 12:32:28 +01:00
Robin Krahl 63a1a39852 Update dependencies 2025-01-09 12:32:24 +01:00
Robin Krahl 96bf04e97c Replace trussed dependency with trussed-core 2025-01-08 09:59:25 +01:00
Robin Krahl 6edcb14f6c Add CI workflow 2025-01-06 17:55:39 +01:00
Robin Krahl dcff9009c3 Remove ctap-types dependency
We only need the ctap-types for six error codes.  It makes more sense to
define these error codes directly inside the crate so that we don’t need
to make usbd-ctaphid releases just to bump ctap-types.

Arguably, this also makes the code more correct:  Previously, we used a
type that represents the CTAP2 error codes, but we actually want to use
the CTAPHID error codes.  Those happen to be the same, but it could be a
cause for confusion.

In the future, we could also use the ctaphid-types crate instead.
2024-06-03 10:06:23 +02:00
Robin Krahl 1db2e014f2 Don’t reset state on CTAPHID_CANCEL
When we receive a CTAPHID_CANCEL command and cancel a user presence
check, we still need to respond to the original command, typically with
a CTAP2_ERR_KEEPALIVE_CANCEL error.  And if we already finished
executing the command, there is no harm in sending out its response.

With this patch, we never discard responses that have already been
calculated.  Also, we never reset the pipe state and just finish the
normal command flow.  We just set the interrupt flag if the
authenticator is currently processing a command.
2024-02-29 21:34:23 +01:00
Robin Krahl eda9b76c36 Support invalid CTAPHID commands
Previously, we just ignored invalid CTAPHID commands.  With this patch,
we return a CTAPHID_INVALID_COMMAND error.
2024-02-22 13:31:39 +01:00
Sosthène Guédonandsosthene-nitrokey 3f24df2f8b Use reference to the response rather than copying it 2023-07-12 11:39:17 +02:00
Sosthène Guédonandsosthene-nitrokey e9cbf904f5 Use merged PRs 2023-06-20 17:37:08 +02:00
Sosthène Guédonandsosthene-nitrokey d92deebf24 Fix typo 2023-06-20 17:37:08 +02:00
Sosthène Guédonandsosthene-nitrokey 913f61527c Bump deps 2023-06-20 17:37:08 +02:00
Sosthène Guédonandsosthene-nitrokey 33a47ec70b Update deps 2023-06-20 17:37:08 +02:00
Sosthène Guédonandsosthene-nitrokey d85acccb8a Use released ref-swap 2023-06-20 17:37:08 +02:00
Sosthène Guédonandsosthene-nitrokey 9dc54d6de8 Add request interrupt mechanism 2023-06-20 17:37:08 +02:00
Sosthène GuédonandMarkus Meissner 2f658fbe84 Use upstream ctaphid-dispatch 2023-06-20 16:18:04 +02:00
Sosthène GuédonandMarkus Meissner e415b176c8 Add pipe lifetime 2023-06-20 16:18:04 +02:00
Sosthène GuédonandMarkus Meissner 2580bc6944 Migrate to interchange 0.3.0 2023-06-20 16:18:04 +02:00