refactor(netx): use netxlite to build TLSDialer (#790)
This diff modifies netx to use netxlite to build the TLSDialer. Building the TLSDialer entails building a TLSHandshaker. While there, hide netxlite names we don't want to be public and change netx tests to test for functionality. To this end, refactor filtering to provide an easier to use TLS server. We don't need the complexity of proxying rather we need to provoke specific errors. Part of https://github.com/ooni/probe/issues/2121
This commit is contained in:
parent
ae24ba644c
commit
e9ed733f07
9 changed files with 354 additions and 681 deletions
|
|
@ -7,7 +7,7 @@ for file in $(find . -type f -name \*.go); do
|
|||
# implement safer wrappers for these functions.
|
||||
continue
|
||||
fi
|
||||
if [ "$file" = "./internal/netxlite/filtering/tls.go" ]; then
|
||||
if [ "$file" = "./internal/netxlite/filtering/tls_test.go" ]; then
|
||||
# We're allowed to use ReadAll and Copy in this file to
|
||||
# avoid depending on netxlite, so we can use filtering
|
||||
# inside of netxlite's own test suite.
|
||||
|
|
|
|||
Loading…
Reference in a new issue