Skip to content

sectransp: Use common code for cipher suite lookup#13521

Closed
jan2000 wants to merge 1 commit intocurl:masterfrom
jan2000:sectransp-update-ssl-cipher-list
Closed

sectransp: Use common code for cipher suite lookup#13521
jan2000 wants to merge 1 commit intocurl:masterfrom
jan2000:sectransp-update-ssl-cipher-list

Conversation

@jan2000
Copy link
Contributor

@jan2000 jan2000 commented May 2, 2024

Take advantage of the Curl_cipher_suite_walk_str() and Curl_cipher_suite_get_str() functions introduced in commit fba9afe.

@github-actions github-actions bot added the tests label May 2, 2024
@jan2000 jan2000 marked this pull request as draft May 2, 2024 18:15
@jan2000 jan2000 force-pushed the sectransp-update-ssl-cipher-list branch from 1f7118d to 1ae7131 Compare May 2, 2024 18:22
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This big table can be removed (or replaced with something smaller) in a future PR. However, to make sure there is no change in behaviour with this commit it is left in for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These wrapper functions for Curl_cipher_suite_get_str and Curl_cipher_suite_walk_str are here so there is no change in behavior with this commit. But, I guess no one will shed a tear if support for setting/getting these ciphers is removed?

@jan2000 jan2000 marked this pull request as ready for review May 2, 2024 18:52
Copy link
Member

@nickzman nickzman left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this. I only noticed some minor things; the code looks okay, and it doesn’t appear to introduce any obvious regressions.

Copy link
Member

Choose a reason for hiding this comment

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

That should be “even” supported. And I have no idea if they’re supported or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well actually I meant to say "were these ever supported ?", but also in present and future tense. As in: can this be safely removed, or should this be kept in for backward compatibility?

Copy link
Member

Choose a reason for hiding this comment

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

Same change here.

@jan2000 jan2000 force-pushed the sectransp-update-ssl-cipher-list branch from 1ae7131 to 7746df8 Compare May 8, 2024 18:27
Take advantage of the Curl_cipher_suite_walk_str() and
Curl_cipher_suite_get_str() functions introduced in commit fba9afe.
@jan2000 jan2000 force-pushed the sectransp-update-ssl-cipher-list branch from 7746df8 to 18ed50c Compare May 8, 2024 18:40
@jan2000
Copy link
Contributor Author

jan2000 commented May 8, 2024

@nickzman I made the changes you suggested. See https://github.com/curl/curl/compare/1ae71316953f0aa57e5c6a8ad0cb00b9a7deb317..7746df8cf110219407aeeb07e04167d50b336fe9

However, after pushing I saw CI tests failing due to unit2604. So I rebased to latest master and pushed again. Sorry if this caused any inconvenience for the review.

But now I am a bit puzzled as to how the test could be failing on unit2604 in the first place, as it was not yet in the master that this PR was initially based on. How does that work?

@jan2000 jan2000 requested a review from nickzman May 8, 2024 19:30
@icing
Copy link
Contributor

icing commented May 9, 2024

But now I am a bit puzzled as to how the test could be failing on unit2604 in the first place, as it was not yet in the master that this PR was initially based on. How does that work?

It's unrelated. Should be fixed now by merging of #13563 and #13564.

Copy link
Member

@nickzman nickzman left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your work on this.

@bagder bagder closed this in 2b52fe4 May 29, 2024
@bagder
Copy link
Member

bagder commented May 29, 2024

Thanks!

@jan2000 jan2000 deleted the sectransp-update-ssl-cipher-list branch August 4, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants