Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix openssl verify cert #2603

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

Wenxing-hou
Copy link
Contributor

Fix: #2588

@Wenxing-hou Wenxing-hou force-pushed the fix_openssl_verify_cert branch 2 times, most recently from 4017f96 to df7066e Compare March 4, 2024 02:23
@@ -2041,6 +2041,12 @@ bool libspdm_x509_verify_cert_chain(const uint8_t *root_cert, size_t root_cert_l
length = 0;
current_cert_len = 0;

/*only self_signed cert is accepted when these two cert is same*/
if ((libspdm_consttime_is_mem_equal(root_cert, cert_chain, root_cert_length)) &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to compare root_cert_length and cert_chain_length.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I have added the length comparison.

@Wenxing-hou Wenxing-hou force-pushed the fix_openssl_verify_cert branch 7 times, most recently from a42ea20 to f389d63 Compare March 5, 2024 03:15
Fix the issue: DMTF#2588

Signed-off-by: Wenxing Hou <[email protected]>
@Wenxing-hou Wenxing-hou force-pushed the fix_openssl_verify_cert branch from f389d63 to a021b48 Compare March 5, 2024 03:35
@steven-bellock
Copy link
Contributor

@jyao1 feel free to merge as you see fit.

@jyao1 jyao1 merged commit 204d173 into DMTF:main Mar 7, 2024
95 checks passed
@Wenxing-hou Wenxing-hou deleted the fix_openssl_verify_cert branch June 25, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants