rustls / hyper-rustls

Integration between hyper HTTP library and rustls TLS stack
Other
311 stars 144 forks source link

TLS 1.3 0-RTT support #164

Open digitwolf opened 2 years ago

digitwolf commented 2 years ago

Hi all,

I couldn't find an API to enable 0-RTT. Is there an easy way to use this lib and enable it?

djc commented 2 years ago

For the client or the server? For the client, have a look at https://docs.rs/rustls/latest/rustls/struct.ClientConnection.html#method.early_data. For the server, that's only recently been implemented on the main branch.

digitwolf commented 2 years ago

@djc thank you! I need both. When do you think it will make to a release?

digitwolf commented 2 years ago

@djc But how do I use ClientConnection in hyper? I thought that the idea of this crate is to hide rustls from hyper. It looks like it is an internal rustls API that is not exposed to hyper.

It would be nice if the HttpsConnector would automatically write to early data

djc commented 2 years ago

I'm not sure what it would take to bring early data support to hyper, but it's definitely an interesting project!