Skip to content
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

Add SslCurve::to_nid() and remove SslCurveId #253

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

rushilmehra
Copy link
Collaborator

@rushilmehra rushilmehra commented Aug 1, 2024

We previously added an SslCurveId struct to house SSL_CURVE variants of the internal NID constants, to allow SslRef::curve() to properly instantiate SslCurve structures. This was done to ensure SslRef::set_curves() did not break, as it expects the internal NID constants instead of the public SSL_CURVE ones. In future versions of boringssl, this problem is solved by virtue of the SSL_CTX_set1_group_ids API. Since we don't have this yet, this commit adds SslCurve::nid() so SslRef::set_curves() can convert the SSL_CURVE constants to the NID representation internally without breaking the public API.

@rushilmehra rushilmehra force-pushed the add-curve-mapper branch 4 times, most recently from ae98025 to d542495 Compare August 1, 2024 17:12
We previously added an `SslCurveId` struct to house SSL_CURVE variants of
the internal NID constants, to allow `SslRef::curve()` to properly
instantiate `SslCurve` structures. This was done to ensure
`SslRef::set_curves()` did not break, as it expects the internal NID
constants instead of the public SSL_CURVE ones. In future versions of
boringssl, this problem is solved by virtue of the
SSL_CTX_set1_group_ids API. Since we don't have this yet, this commit
adds `SslCurve::nid()` so `SslRef::set_curves()` can convert the
SSL_CURVE constants to the NID representation internally
without breaking the public API.
@rushilmehra rushilmehra merged commit 0e33475 into master Aug 1, 2024
23 checks passed
@rushilmehra rushilmehra deleted the add-curve-mapper branch August 1, 2024 21:21
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.

2 participants