cloudflare / tls-tris

crypto/tls, now with 100% more 1.3. THE API IS NOT STABLE AND DOCUMENTATION IS NOT GUARANTEED.
Other
291 stars 51 forks source link

Create a standalone tls library that does not require patching the Go standard library #158

Open kriskwiatkowski opened 5 years ago

kriskwiatkowski commented 5 years ago

Let's make it separated library instead of being part of Go standard library. If possible we should keep mechanism allowing to swap sources of tris with Go implementation

Lekensteyn commented 5 years ago

Just for future readers, patching the standard Go library will still be needed until at least Go 1.12 depending on the use case. If you only need a TLS implementation with raw sockets, a standalone package might work after #169.

If you need support for HTTP2 using net/http, then it won't work because that package explicitly checks for an interface from crypto/tls.

With Go modules (which is enabled by default in 1.13?) it might be possible to replace certain libraries, but I have not fully investigated that possibility.