Skip to content

Commit

Permalink
Allows GetInfo while from other channels (#701)
Browse files Browse the repository at this point in the history
While we still don't support multiple channels, at least a GetInfo is
acceptable for concurrent communication.
  • Loading branch information
kaczmarczyck authored Sep 5, 2024
1 parent b562a79 commit 6feeb71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/opensk/src/ctap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,9 @@ impl<E: Env> CtapState<E> {
// The auth token timeouts are checked once here, to make error codes consistent. If your
// auth token hasn't timed out now, you can fully use it for this command.
self.client_pin.update_timeouts(env);
self.clear_other_channels(channel);
if !matches!(&command, Command::AuthenticatorGetInfo) {
self.clear_other_channels(channel);
}
match (&command, self.stateful_command_permission.get_command(env)) {
(Command::AuthenticatorGetNextAssertion, Ok(StatefulCommand::GetAssertion(_)))
| (Command::AuthenticatorLargeBlobs(_), Ok(StatefulCommand::LargeBlob(_)))
Expand Down

0 comments on commit 6feeb71

Please sign in to comment.