-
Notifications
You must be signed in to change notification settings - Fork 712
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
s2n-tls rust binding: expose selected application protocol #4599
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Zhang! Thanks for the PR!
I left some comments for you to address, and I'd also ask that you add a test. It would probably be sufficient to just have a single negative and positive case.
cbe0841
to
8e36ebc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for all the nits, but looking good!
Resolved issues:
none
Description of changes:
Add a Connection::selected_application_protocol() method to get the selected ALPN value.
Call-outs:
none
Testing:
Not yet. I didn't found any ALPN related testcases in s2n-tls/src/testing/s2n_tls.rs. Maybe I should add one?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.