Skip to content
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

API for going from WrappedStream -> rustls::Session #11

Closed
alex opened this issue May 6, 2017 · 2 comments
Closed

API for going from WrappedStream -> rustls::Session #11

alex opened this issue May 6, 2017 · 2 comments

Comments

@alex
Copy link
Contributor

alex commented May 6, 2017

My specific goal is to go from hyper::server::Request to a client certificate.

I can get from Request to WrappedStream with request.ssl::<hyper_rustls::WrappedStream>().unwrap(), and a rustls::Session has get_peer_certificates, so it seems the missing piece is hyper_rustls::WrappedStream -> rustls::Session.

@ctz
Copy link
Member

ctz commented May 6, 2017

Could you test if this does what you want? #12

@alex
Copy link
Contributor Author

alex commented May 7, 2017

#12 fixes this!

@alex alex closed this as completed May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants