-
Notifications
You must be signed in to change notification settings - Fork 845
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
OpenSSL Compat Layer: OCSP response improvments #8408
base: master
Are you sure you want to change the base?
Conversation
3b89ce4
to
f96acbb
Compare
43964c1
to
2816d92
Compare
2816d92
to
a635189
Compare
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to review tests/
.
retest this please |
a92d921
to
b02a263
Compare
retest this please |
retest this please |
- search for the signer in the CertificateManager if the embedded cert verification fails in original asn template.
- Added a new test case `resp_bad_embedded_cert` in `create_ocsp_test_blobs.py` to test OCSP response with an unusable internal cert that can be verified in Cert Manager. - Updated `test_ocsp_response_parsing` in `ocsp.c` to include the new test case. - Ensured the new test case checks for proper handling of OCSP responses with incorrect internal certificates.
da504fa
to
1eecf32
Compare
retest this please |
@@ -2737,6 +2748,12 @@ struct OcspResponse { | |||
byte* response; /* Pointer to beginning of OCSP Response */ | |||
word32 responseSz; /* length of the OCSP Response */ | |||
|
|||
enum responderIdType responderIdType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this new union need to always be part of the OcspResponse structure or can it be just with compatibility enabled? I am worried about struct size growth on stack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's always needed. If stack size is a concern I can refactor the code to use heap memory instead.
Improves of OCSP response handling.
Aligns wolfSSL_OCSP_basic_verify and wolfSSL_d2i_OCSP_RESPONSE to OpenSSL behavior.
Replaces #8036