feat: tlsmiddlebox experiment (#817)

See https://github.com/ooni/probe/issues/2124
This commit is contained in:
DecFox 2022-09-08 21:01:03 +05:30 committed by GitHub
commit f2b88ddb4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1670 additions and 0 deletions

View file

@ -0,0 +1,15 @@
//go:build !cgo
package tlsmiddlebox
//
// Disabled CGO for SO_ERROR
//
// getErrFromSockOpt returns the errno of the SO_ERROR
//
// This is the CGO_ENABLED=0 implementation of this function, which
// always returns errno=0 for SO_ERROR
func getErrFromSockOpt(fd uintptr) int {
return 0
}