MCPcopy Create free account
hub / github.com/refraction-networking/utls / writeToUConn

Method writeToUConn

u_ech.go:165–168  ·  view source on GitHub ↗

writeToUConn implements TLSExtension. For ECH extensions, writeToUConn simply points the ech field in UConn to the extension.

(uconn *UConn)

Source from the content-addressed store, hash-verified

163//
164// For ECH extensions, writeToUConn simply points the ech field in UConn to the extension.
165func (g *GREASEEncryptedClientHelloExtension) writeToUConn(uconn *UConn) error {
166 uconn.ech = g
167 return uconn.MarshalClientHelloNoECH()
168}
169
170// Len implements TLSExtension.
171func (g *GREASEEncryptedClientHelloExtension) Len() int {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected