Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace empty maps with an empty response #24

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

robin-nitrokey
Copy link
Member

Instead of sending an empty CBOR map as a response, we now always send an empty response. Previously, we had this as a special case for the ClientPin response, but we need it for LargeBlobs too. So a generic implementation makes more sense and is easier to maintain.

Instead of sending an empty CBOR map as a response, we now always send
an empty response.  Previously, we had this as a special case for the
ClientPin response, but we need it for LargeBlobs too.  So a generic
implementation makes more sense and is easier to maintain.
Copy link
Contributor

@sosthene-nitrokey sosthene-nitrokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have a reference to the spec to justify that.

@robin-nitrokey
Copy link
Member Author

Unfortunately there is no clear rule for that (at least from my understanding), see also the discussion in: Nitrokey/fido-authenticator#6

But it is de facto required both by the Google test suite and the Chrome implementation.

@robin-nitrokey robin-nitrokey merged commit 85eb709 into trussed-dev:main Nov 28, 2023
4 checks passed
@robin-nitrokey robin-nitrokey deleted the empty-response branch November 28, 2023 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants