hyper-rustls icon indicating copy to clipboard operation
hyper-rustls copied to clipboard

TLS 1.3 0-RTT support

Open digitwolf opened this issue 3 years ago • 4 comments

Hi all,

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

digitwolf avatar Jan 18 '22 17:01 digitwolf

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.

djc avatar Jan 18 '22 18:01 djc

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

digitwolf avatar Jan 18 '22 19:01 digitwolf

@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

digitwolf avatar Jan 18 '22 20:01 digitwolf

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

djc avatar Jan 18 '22 21:01 djc