Skip to content

[feat] support alpn negotiation in ssl context #247

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

Merged
merged 5 commits into from
Feb 3, 2022
Merged

[feat] support alpn negotiation in ssl context #247

merged 5 commits into from
Feb 3, 2022

Conversation

kares
Copy link
Member

@kares kares commented Feb 3, 2022

Follow up on getting ALPN finished (from #238) :

  • adds an alpn negotiation test from ruby-openssl;
  • implements the necessary SSLSocket and SSLContext ALPN ruby APIs:
    • OpenSSL::SSL::SSLSocket#alpn_protocol
    • OpenSSL::SSL::SSLContext#alpn_protocols (rw)
    • OpenSSL::SSL::SSLContext#alpn_select_cb

HoneyryderChuck and others added 5 commits February 2, 2022 17:03
* SSLSocket now implements `#alpn_protocol`
* SSLContext onw implements `#alpn_protocols` annd `#alpn_select_cb`

They will be used to set the alpn parameters when using jsse BCSSLEngine, which supports ALPN negotiation.
there's really no need to resort to BC engine
@kares kares mentioned this pull request Feb 3, 2022
3 tasks
@kares kares linked an issue Feb 3, 2022 that may be closed by this pull request
@HoneyryderChuck
Copy link
Contributor

LGTM 🎊

I see you already linked an issue to autoclose, I'd recommend autoclosing this list of issues as well :)

@kares kares linked an issue Feb 3, 2022 that may be closed by this pull request
@kares kares merged commit 167b0d6 into master Feb 3, 2022
@HoneyryderChuck
Copy link
Contributor

@kares thx for all the work you did recently, which is not visible in this PR, but made it possible!

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.

OpenSSL implementation doesn't support ALPN. undefined method alpn_protocols= in OpenSSL::SSL::SSLContext
2 participants