diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-14 11:33:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-14 11:33:51 +0200 |
commit | a78c7464b1c7790fb43fa0f3e0bd15b057f9c31e (patch) | |
tree | 80a3f0465b6eca0458087c29feb93101bced4342 /conf | |
parent | build: we no longer use security attributes (diff) | |
download | wireguard-windows-a78c7464b1c7790fb43fa0f3e0bd15b057f9c31e.tar.xz wireguard-windows-a78c7464b1c7790fb43fa0f3e0bd15b057f9c31e.zip |
global: use tab after //sys
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/dnsresolver_windows.go | 4 | ||||
-rw-r--r-- | conf/dpapi/dpapi_windows.go | 4 | ||||
-rw-r--r-- | conf/path_windows.go | 4 | ||||
-rw-r--r-- | conf/storewatcher_windows.go | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/conf/dnsresolver_windows.go b/conf/dnsresolver_windows.go index 165baf3e..3157a878 100644 --- a/conf/dnsresolver_windows.go +++ b/conf/dnsresolver_windows.go @@ -16,8 +16,8 @@ import ( "golang.org/x/sys/windows" ) -//sys internetGetConnectedState(flags *uint32, reserved uint32) (connected bool) = wininet.InternetGetConnectedState -//sys getTickCount64() (ms uint64) = kernel32.GetTickCount64 +//sys internetGetConnectedState(flags *uint32, reserved uint32) (connected bool) = wininet.InternetGetConnectedState +//sys getTickCount64() (ms uint64) = kernel32.GetTickCount64 func resolveHostname(name string) (resolvedIpString string, err error) { const maxTries = 10 diff --git a/conf/dpapi/dpapi_windows.go b/conf/dpapi/dpapi_windows.go index 05074717..851ec1ee 100644 --- a/conf/dpapi/dpapi_windows.go +++ b/conf/dpapi/dpapi_windows.go @@ -37,7 +37,7 @@ func bytesToBlob(bytes []byte) *dpBlob { return blob } -//sys cryptProtectData(dataIn *dpBlob, name *uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptProtectData +//sys cryptProtectData(dataIn *dpBlob, name *uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptProtectData func Encrypt(data []byte, name string) ([]byte, error) { out := dpBlob{} @@ -58,7 +58,7 @@ func Encrypt(data []byte, name string) ([]byte, error) { return ret, nil } -//sys cryptUnprotectData(dataIn *dpBlob, name **uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptUnprotectData +//sys cryptUnprotectData(dataIn *dpBlob, name **uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptUnprotectData func Decrypt(data []byte, name string) ([]byte, error) { out := dpBlob{} diff --git a/conf/path_windows.go b/conf/path_windows.go index 1345db14..34e189b2 100644 --- a/conf/path_windows.go +++ b/conf/path_windows.go @@ -14,8 +14,8 @@ import ( "golang.org/x/sys/windows" ) -//sys coTaskMemFree(pointer uintptr) = ole32.CoTaskMemFree -//sys shGetKnownFolderPath(id *windows.GUID, flags uint32, token windows.Handle, path **uint16) (err error) [failretval!=0] = shell32.SHGetKnownFolderPath +//sys coTaskMemFree(pointer uintptr) = ole32.CoTaskMemFree +//sys shGetKnownFolderPath(id *windows.GUID, flags uint32, token windows.Handle, path **uint16) (err error) [failretval!=0] = shell32.SHGetKnownFolderPath var folderIDLocalAppData = windows.GUID{0xf1b32785, 0x6fba, 0x4fcf, [8]byte{0x9d, 0x55, 0x7b, 0x8e, 0x7f, 0x15, 0x70, 0x91}} const kfFlagCreate = 0x00008000 diff --git a/conf/storewatcher_windows.go b/conf/storewatcher_windows.go index 26e94cd2..f5cbb553 100644 --- a/conf/storewatcher_windows.go +++ b/conf/storewatcher_windows.go @@ -22,8 +22,8 @@ const ( fncSECURITY uint32 = 0x00000100 ) -//sys findFirstChangeNotification(path *uint16, watchSubtree bool, filter uint32) (handle windows.Handle, err error) = kernel32.FindFirstChangeNotificationW -//sys findNextChangeNotification(handle windows.Handle) (err error) = kernel32.FindNextChangeNotification +//sys findFirstChangeNotification(path *uint16, watchSubtree bool, filter uint32) (handle windows.Handle, err error) = kernel32.FindFirstChangeNotificationW +//sys findNextChangeNotification(handle windows.Handle) (err error) = kernel32.FindNextChangeNotification var haveStartedWatchingConfigDir bool |