Skip to content

Fix: add missing ret=-1 on tee_verify_quote failure (untrusted path) in QuoteVerificationSample#469

Merged
bgotowal merged 1 commit intointel:mainfrom
hello31337:fix-tee-verify-quote-ret
Mar 27, 2026
Merged

Fix: add missing ret=-1 on tee_verify_quote failure (untrusted path) in QuoteVerificationSample#469
bgotowal merged 1 commit intointel:mainfrom
hello31337:fix-tee-verify-quote-ret

Conversation

@hello31337
Copy link
Copy Markdown
Contributor

In the sample untrusted quote verification path of ecdsa_quote_verification(),
when tee_verify_quote() fails, the function jumps to cleanup without setting
ret = -1. This may result in returning 0 (success) even though the
verification failed.

This patch aligns the untrusted path with the trusted path, which correctly
sets ret = -1 on failure, ensuring consistent and safe error handling.

No functional impact on successful flows.
Verified build on Ubuntu 24.04 with SGX SDK 2.26 and DCAP 1.23.

Signed-off-by: Ao Sakurai <hello-g.t.31337@suou.waseda.jp>
@hyjiang
Copy link
Copy Markdown
Contributor

hyjiang commented Nov 3, 2025

LGTM

@bgotowal bgotowal merged commit 8bc7862 into intel:main Mar 27, 2026
@bgotowal
Copy link
Copy Markdown
Contributor

Thank you for your contribution!

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.

3 participants