-
Notifications
You must be signed in to change notification settings - Fork 399
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
Added support for TLS Application Layer Protocol Negotiation (ALPN) #66
base: master
Are you sure you want to change the base?
Conversation
src/backend.c
Outdated
@@ -107,15 +107,17 @@ struct Backend * | |||
} | |||
|
|||
struct Backend * | |||
lookup_backend(const struct Backend_head *head, const char *hostname) { | |||
lookup_backend(const struct Backend_head *head, const char *name, unsigned name_size) { |
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.
For consistency can we got with size_t name_len
rather than unsigned name_size
.
Overall looks great. I wanted to avoid creating a dependencies for the protocol parsers on other modules (besides logger module and protocol header), can we avoid passing a reference to the listener to Could you provide some sample ALPN client hello messages for tls_test.c? Could you make sure make check runs cleanly? |
On Mon, Feb 17, 2014 at 7:29 PM, Dustin Lundquist
I needed it so that it can access the information on the alpn_Table. I
regards, |
I haven't forgotten about this one. Hopefully I'll have some time this weekend to dig in further. |
Signed-off-by: Nikos Mavrogiannopoulos <[email protected]>
Hello, |
Sorry for the long delay getting back to you, I haven't had much time to work on sniproxy over the last month. I'm still not real happy with the level of coupling this introduces and have been hacking on a local branch trying to find a more orthogonal way to introduce it. From my reading about ALPN, I did have a few high level observations:
I'm still not clear in which cases both ALPN and SNI extensions would be present, or how that should be handled. |
Hello, About (1), I agree and this is the reason the Listener information was passed there. I don't know if passing fewer data there will actually provide any advantage, but it will be a bit cleaner separation as you say. I don't have much time to work on that now though. |
Conflicts: src/backend.c src/config.c src/connection.c src/listener.c src/listener.h tests/Makefile.am tests/tls_test.c
This patch adds support for ALPN, based on draft-ietf-tls-applayerprotoneg-04.
It adds the new keywords 'ALPNtable' and 'prefer'. The latter accepts the
values 'sni' or 'alpn'.
Signed-off-by: Nikos Mavrogiannopoulos [email protected]