-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Access Client Hello before accepting connection #2024
Comments
|
I see. Sounds like a non-trivial amount if work. That's unfortunate. Maybe it would be easier to add an accept method, which takes a closure mapping Client Hello to a rustls config as a first step. |
We already have a |
But the fact that the handshake data is available in |
|
I'm not sure if this would be feasible. The motivation here is to make the connection's configuration depending on the Client Hello, so we have to defer the connection logic until after the application has had its opportunity to weigh in, similar to how A callback could work, though it's a bit of a compromise ergonomically. |
Adding an async |
That could work. I think it'd need about the same changes at the proto layer: we still want decode a Client Hello but defer all other work, and unless the user calls |
Stupid question: Reaching |
Yes, the first CRYPTO frame is included, but there's no guarantee the complete ClientHello has been received (particularly with post-quantum key exchange). |
I need to access the
rustls::server::ClientHello
or at least the content ofserver_name()
before choosing a rustls config.alpn()
would also be very useful. Could this be exposed viaIncoming
or is that too early?The text was updated successfully, but these errors were encountered: