feat: add uTLS support in measurexlite (#918)
Closes https://github.com/ooni/probe/issues/2253 Co-authored-by: decfox <decfox@github.com>
This commit is contained in:
parent
9e8ad551aa
commit
59d8b6ecef
4 changed files with 136 additions and 1 deletions
15
internal/measurexlite/utls.go
Normal file
15
internal/measurexlite/utls.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue