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

Parse slot_id in use from token state #546

Merged
merged 3 commits into from
Sep 22, 2022

Conversation

hcyang-google
Copy link
Collaborator

Support switching to multi-PIN feature and making the default slots 8. But the command to switch to multi-PIN isn't exposed yet because the implementation isn't ready.

Main change of this commit is to cache the slot_id in use inside token state, and retrieve it from token state when needed.

I was thinking about unittest when I added more code and opened up the multi-PIN feature, and I will focus on the following types of unittests:

  • storage test cases for multi-PIN: this can already be added, I'll do it in an upcoming PR.
  • MakeCredential/GetAssertion test cases for multi-PIN: wait until the PR that enables checking/persisting slot_id in credentials.
  • ClientPin test cases for multi-PIN: wait until the PR that parses slot_id from ClientPin command params.
  • test cases for commands to be added/updated: should come with the PRs that add those.

Support switching to multi-PIN feature and making the default slots 8.
But the command to switch to multi-PIN isn't exposed yet because the
implementation isn't ready.

Main change of this commit is to cache the slot_id in use inside token
state, and retrieve it from token state when needed.
@coveralls
Copy link

coveralls commented Sep 21, 2022

Coverage Status

Coverage increased (+0.0007%) to 88.673% when pulling 2d2f591 on hcyang-google:multi-pin into 078e565 on google:multi-pin.

Cargo.toml Outdated Show resolved Hide resolved
src/ctap/config_command.rs Outdated Show resolved Hide resolved
libraries/crypto/Cargo.toml Show resolved Hide resolved
src/ctap/mod.rs Outdated Show resolved Hide resolved
src/ctap/storage/key.rs Outdated Show resolved Hide resolved
kaczmarczyck and others added 2 commits September 22, 2022 11:13
* fixed version of once_cell

* fixes comments

* removes unnecessary fuzz dependency
@hcyang-google hcyang-google merged commit 1c6c7a4 into google:multi-pin Sep 22, 2022
@hcyang-google hcyang-google deleted the multi-pin branch September 22, 2022 06:30
@hcyang-google hcyang-google restored the multi-pin branch September 22, 2022 06:33
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.

None yet

4 participants