refactor: merge tlsx into netxlite (#403)
Part of https://github.com/ooni/probe/issues/1505
This commit is contained in:
parent
f1ee763f94
commit
7f2463d745
15 changed files with 41 additions and 47 deletions
|
|
@ -5,8 +5,6 @@ import (
|
|||
"crypto/tls"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/engine/netx/tlsx"
|
||||
)
|
||||
|
||||
// TLSHandshaker is the generic TLS handshaker.
|
||||
|
|
@ -74,8 +72,8 @@ func (h *TLSHandshakerLogger) Handshake(
|
|||
h.Logger.Debugf(
|
||||
"tls {sni=%s next=%+v}... ok in %s {next=%s cipher=%s v=%s}",
|
||||
config.ServerName, config.NextProtos, elapsed, state.NegotiatedProtocol,
|
||||
tlsx.CipherSuiteString(state.CipherSuite),
|
||||
tlsx.VersionString(state.Version))
|
||||
TLSCipherSuiteString(state.CipherSuite),
|
||||
TLSVersionString(state.Version))
|
||||
return tlsconn, state, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue