Skip to content

Recalculate suites at ssl initialization. #8757

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anhu
Copy link
Member

@anhu anhu commented May 9, 2025

modifies the InitSSL() function in src/internal.c to recalculate cipher suites after copying DH parameters from the context to the SSL object.

Fixes ZD19827

@anhu anhu requested a review from wolfSSL-Bot May 9, 2025 17:50
@anhu anhu self-assigned this May 9, 2025
@anhu anhu assigned wolfSSL-Bot and unassigned anhu May 12, 2025
Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

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

@ColtonWilley the review question lands in your wheelhouse, according to @anhu .

#ifndef NO_CERTS
/* Its possible that algorithm parameters were set in the ctx (ie: DH),
* recalculate cipher suites. */
if (ssl->options.haveDH) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to test more stringently here for whether we need to recalculate? It would be nice to avoid the overhead if it's not needed.

@douzzer douzzer assigned douzzer and ColtonWilley and unassigned wolfSSL-Bot May 15, 2025
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.

4 participants