You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustls 0.20.0 introduced the Acceptor API. This allows servers to read off a ClientHello before constructing a Connection, which makes selection of server certificates easier. For more details see rustls/rustls#89.
The text was updated successfully, but these errors were encountered:
Fixes#155.
Since this relies on an "into" pattern (for the Accepted -> Connection
transform), I've implemented the safer "into" pattern from #244: a
rustls_acceptor always needs to be freed, whether its "into" method was
called or not. This reduces the risk of double frees. I've introduced
the new result code `rustls_result::AlreadyUsed` to cover the case when
an accessor was called after the "into" method was called.
I've introduced another new result code `rustls_result::AcceptorNotReady`
to cover the case when `accept()` returns `Ok(None)`.
For convenience I've flattened the methods from ClientHello onto
`rustls_accepted`, so you don't need to get a ClientHello pointer out
of the `rustls_accepted`, you can call the accessors directly.
Since we now have an accessor returning a `rustls_str` (previously they
were passed in callbacks), we needed a way to make the lifetime of a
`rustls_str` longer than the function that made it, so I introduced an
`rustls_str::into_static` method.
rustls 0.20.0 introduced the Acceptor API. This allows servers to read off a ClientHello before constructing a Connection, which makes selection of server certificates easier. For more details see rustls/rustls#89.
The text was updated successfully, but these errors were encountered: