Skip to content

Updating the Client's parsing of the Cert Status Body#29207

Closed
rsith71 wants to merge 3 commits intoopenssl:masterfrom
rsith71:multi_ocsp_fix_receiver
Closed

Updating the Client's parsing of the Cert Status Body#29207
rsith71 wants to merge 3 commits intoopenssl:masterfrom
rsith71:multi_ocsp_fix_receiver

Conversation

@rsith71
Copy link
Contributor

@rsith71 rsith71 commented Nov 24, 2025

When a Cert status body is received and the length of the response is zero error out.

This PR is dependent on
#28955

It will not pass tests until this PR is merged into master.

Checklist
  • tests are added or updated

mattcaswell
mattcaswell previously approved these changes Nov 24, 2025
@mattcaswell mattcaswell added branch: master Applies to master branch approval: review pending This pull request needs review by a committer branch: 3.6 Applies to openssl-3.6 labels Nov 24, 2025
@t8m t8m added triaged: bug The issue/pr is/fixes a bug tests: present The PR has suitable tests present labels Nov 25, 2025
}
p = respder;
resp = d2i_OCSP_RESPONSE(NULL, &p, (long)resplen);
if (respder == NULL) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: consider if ((respder = OPENSSL_malloc(resplen)) == NULL) {

When a Cert status body is received and the length of the
response is zero error out.

This PR is dependent on
openssl#28955

It will not pass tests until this PR is merged into master.
Comment on lines 2950 to 2951
;

Copy link
Member

Choose a reason for hiding this comment

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

Please remove these two spurious lines.

@t8m t8m added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Dec 2, 2025
@openssl-machine openssl-machine added approval: ready to merge The 24 hour grace period has passed, ready to merge and removed approval: done This pull request has the required number of approvals labels Dec 3, 2025
@openssl-machine
Copy link
Collaborator

This pull request is ready to merge

openssl-machine pushed a commit that referenced this pull request Dec 3, 2025
When a CertStatus message is received and the length of the
OCSP response is zero error out.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #29207)
openssl-machine pushed a commit that referenced this pull request Dec 3, 2025
When a CertStatus message is received and the length of the
OCSP response is zero error out.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #29207)

(cherry picked from commit ccd8451)
@t8m
Copy link
Member

t8m commented Dec 3, 2025

Merged to the master and 3.6 branches with tweaked commit message. Thank you.

@t8m t8m closed this Dec 3, 2025
cxx194832 pushed a commit to cxx194832/openssl that referenced this pull request Dec 12, 2025
When a CertStatus message is received and the length of the
OCSP response is zero error out.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#29207)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: ready to merge The 24 hour grace period has passed, ready to merge branch: master Applies to master branch branch: 3.6 Applies to openssl-3.6 tests: present The PR has suitable tests present triaged: bug The issue/pr is/fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants