ooni-probe-cli/internal/measurexlite/utls.go
2022-09-07 15:19:53 +02:00

16 lines
449 B
Go

package measurexlite
import (
"github.com/ooni/probe-cli/v3/internal/model"
utls "gitlab.com/yawning/utls.git"
)
// NewTLSHandshakerUTLS is equivalent to netxlite.NewTLSHandshakerUTLS
// except that it returns a model.TLSHandshaker that uses this trace.
func (tx *Trace) NewTLSHandshakerUTLS(dl model.DebugLogger, id *utls.ClientHelloID) model.TLSHandshaker {
return &tlsHandshakerTrace{
thx: tx.newTLSHandshakerUTLS(dl, id),
tx: tx,
}
}