Commit 36fad4d
committed
- Fixed SPDM cleartext fallback in TPM2_SendCommand(): positive error codes from SPDM now return immediately
instead of falling through to cleartext retry
- Fixed same SPDM cleartext fallback in TPM2_SendCommandAuth(): same pattern applied
- Added VdCode validation in wolfTPM2_SPDM_SecuredExchange(): verifies response matches expected TPM2_CMD
vendor code before accepting payload1 parent 965a810 commit 36fad4d
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
501 | 505 | | |
502 | 506 | | |
503 | 507 | | |
| |||
533 | 537 | | |
534 | 538 | | |
535 | 539 | | |
536 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
537 | 543 | | |
| 544 | + | |
538 | 545 | | |
539 | 546 | | |
540 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
248 | 254 | | |
249 | 255 | | |
250 | 256 | | |
| |||
0 commit comments