You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn/ipnlocal
Joe Tsai 9a0c8bdd20 util/deephash: make hash type opaque
The fact that Hash returns a [sha256.Size]byte leaks details about
the underlying hash implementation. This could very well be any other
hashing algorithm with a possible different block size.

Abstract this implementation detail away by declaring an opaque type
that is comparable. While we are changing the signature of UpdateHash,
rename it to just Update to reduce stutter (e.g., deephash.Update).

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
3 years ago
..
local.go util/deephash: make hash type opaque 3 years ago
local_test.go all: adapt to opaque netaddr types 3 years ago
loglines_test.go types/logger: add key grinder stats lines to rate-limiting exemption list 3 years ago
peerapi.go all: adapt to opaque netaddr types 3 years ago
peerapi_macios_ext.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 3 years ago
peerapi_test.go ipn/ipnlocal: use delete marker files to work around Windows delete problems 3 years ago
state_test.go ipn/ipnlocal: make state_test catch the bug fixed by #2445 3 years ago