wireguard-go/tun
Simon Rozman 6c1b66802f wintun: registry: revise value reading
- Make getStringValueRetry() reusable for reading any value type. This
  merges code from GetIntegerValueWait().
- expandString() >> toString() and extend to support REG_MULTI_SZ
  (to return first value of REG_MULTI_SZ). Furthermore, doing our own
  UTF-16 to UTF-8 conversion works around a bug in windows/registry's
  GetStringValue() non-zero terminated string handling.
- Provide toInteger() analogous to toString()
- GetStringValueWait() tolerates and reads REG_MULTI_SZ too now. It
  returns REG_MULTI_SZ[0], making GetFirstStringValueWait() redundant.

Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-11 17:14:37 +02:00
..
wintun wintun: registry: revise value reading 2019-05-11 17:14:37 +02:00
helper_test.go global: begin modularization 2019-03-03 05:00:40 +01:00
operateonfd.go receive: implement flush semantics 2019-03-21 14:45:41 -06:00
tun.go receive: implement flush semantics 2019-03-21 14:45:41 -06:00
tun_darwin.go tun: darwin: write routeSocket variable in helper 2019-04-19 07:53:19 +09:00
tun_freebsd.go tun: freebsd: work around numerous kernel panics on shutdown 2019-04-23 18:00:23 +09:00
tun_linux.go receive: implement flush semantics 2019-03-21 14:45:41 -06:00
tun_openbsd.go receive: implement flush semantics 2019-03-21 14:45:41 -06:00
tun_windows.go wintun: add LUID accessor 2019-05-10 21:30:23 +02:00