Skip to content

Address final comments from #9761#9958

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
julek-wolfssl:ocsp-responder-follow-up
Mar 12, 2026
Merged

Address final comments from #9761#9958
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
julek-wolfssl:ocsp-responder-follow-up

Conversation

@julek-wolfssl
Copy link
Member

  • Fix line length
  • Remove duplicate comment
  • Check return of wc_HashGetDigestSize
  • Use constant instead of magic number

- Fix line length
- Remove duplicate comment
- Check return of `wc_HashGetDigestSize`
- Use constant instead of magic number
Copilot AI review requested due to automatic review settings March 12, 2026 11:30
@julek-wolfssl julek-wolfssl self-assigned this Mar 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses cleanup comments from a previous PR (#9761), making small formatting and correctness improvements across three files in the wolfSSL codebase.

Changes:

  • Added a return value check for wc_HashGetDigestSize in the OCSP request/response comparison function to handle invalid hash algorithms gracefully.
  • Replaced the magic number 0xFFFF with the defined constant WOLFSSL_MAX_16BIT in TLS 1.3 CSR buffer size validation.
  • Fixed line lengths exceeding the project's limit and removed a duplicate comment in the OCSP responder example.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
wolfcrypt/src/asn.c Added error check for wc_HashGetDigestSize return value in CompareOcspReqResp
src/tls13.c Replaced 0xFFFF magic number with WOLFSSL_MAX_16BIT constant
examples/ocsp_responder/ocsp_responder.c Line length fixes, removed duplicate "Usage help" comment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@JacobBarthelmeh
Copy link
Contributor

Retest this please Jenkins ssh: connect to host github.com port 22: Connection timed out

@JacobBarthelmeh JacobBarthelmeh merged commit 2831a1e into wolfSSL:master Mar 12, 2026
609 of 610 checks passed
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