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

oohttp: net/http fork to ease using utls #1731

Closed
bassosimone opened this issue Aug 12, 2021 · 2 comments
Closed

oohttp: net/http fork to ease using utls #1731

bassosimone opened this issue Aug 12, 2021 · 2 comments

Comments

@bassosimone
Copy link
Contributor

We should create a net/http fork to ease using utls. The patch to make net/http accept any TLS library is trivial (I already tested this in a private repository) and the flow of changes is small enough that it should not make merging hard.

The gist of the patch is introducing a TLSConn type in http that implements net.Conn and has the same Handshake and ConnectionState methods of the *tls.Conn struct. Once we have that, we need to replace any usage of *tls.Conn inside the net/http fork with TLSConn. With this change in, we can use refraction-networking/utls.

@bassosimone
Copy link
Contributor Author

I've started publishing the experimental work I've already done at https://github.com/ooni/oohttp.

@bassosimone
Copy link
Contributor Author

This work has already been done in Sprint 45. As such, I can close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant