Commit d285dc0
committed
fix(ctap2): decode unsignedExtensionOutputs at GetAssertion 0x08
GetAssertion response index 0x08 is unsignedExtensionOutputs, a CBOR map, not enterprise attestation. Decoding it as Option<bool> made the whole response fail to parse. Decode it as an optional map and remove the speculative enterprise_attestation and attestation_statement fields, which no spec defines for GetAssertion.1 parent ba35dde commit d285dc0
3 files changed
Lines changed: 29 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
| 219 | + | |
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | | - | |
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
| |||
1229 | 1227 | | |
1230 | 1228 | | |
1231 | 1229 | | |
1232 | | - | |
1233 | | - | |
1234 | 1230 | | |
1235 | 1231 | | |
1236 | 1232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 373 | + | |
378 | 374 | | |
379 | 375 | | |
380 | 376 | | |
| |||
462 | 458 | | |
463 | 459 | | |
464 | 460 | | |
465 | | - | |
466 | | - | |
467 | 461 | | |
468 | 462 | | |
469 | 463 | | |
| |||
575 | 569 | | |
576 | 570 | | |
577 | 571 | | |
578 | | - | |
579 | | - | |
| 572 | + | |
580 | 573 | | |
581 | 574 | | |
582 | 575 | | |
| |||
660 | 653 | | |
661 | 654 | | |
662 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
663 | 680 | | |
0 commit comments