Commit 92f2120
authored
Changes the Env API to late choice of template ID (#746)
* Changes the Env API to late choice of template ID
Before, a fingerprint sensor had to choose a template ID at the start of
the enrollment process. Not all sensors assign one immediately, and it
conceptually makes more sense to expect an ID after a successful
enrollment.
We introduce a state that tracks whether
- The fingerprint sensor chose a template ID already,
- and we sent a random template ID over CTAP until then.
We also add tests for the introduced state. Since the command is not
considered stateful by CTAP, it means that enrollment can interleave
with other CTAP commands. And the state is not part of
`StatefulCommand`.
* Fixes incorrect documentation1 parent 3c7384c commit 92f2120
6 files changed
Lines changed: 377 additions & 77 deletions
File tree
- libraries/opensk/src
- api
- ctap
- env/test
- src/env/tock
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | | - | |
65 | 71 | | |
66 | | - | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
704 | | - | |
705 | 703 | | |
706 | 704 | | |
707 | 705 | | |
| |||
1181 | 1179 | | |
1182 | 1180 | | |
1183 | 1181 | | |
1184 | | - | |
1185 | | - | |
| 1182 | + | |
1186 | 1183 | | |
1187 | 1184 | | |
1188 | 1185 | | |
| |||
0 commit comments