Skip to content

Conversation

@hello31337
Copy link

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.

@hyjiang
Copy link
Contributor

hyjiang commented Nov 3, 2025

LGTM

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.

2 participants