aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/version
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-06 09:46:10 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-06 15:55:02 +0200
commit568528c747afe3ae991b0340d15cd6a897fd5c9d (patch)
treedd08e02b053b0cf27a75ed2e428701b1799e3bf1 /version
parentui: do tray click action when popup clicked (diff)
downloadwireguard-windows-568528c747afe3ae991b0340d15cd6a897fd5c9d.tar.xz
wireguard-windows-568528c747afe3ae991b0340d15cd6a897fd5c9d.zip
updater: move into manager
Diffstat (limited to 'version')
-rw-r--r--version/debugging_linux.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/version/debugging_linux.go b/version/debugging_linux.go
index df5dbd2f..2a7164ec 100644
--- a/version/debugging_linux.go
+++ b/version/debugging_linux.go
@@ -5,11 +5,13 @@
package version
-// For testing the updater package from linux. Debug stuff only.
+import (
+ "bytes"
+ "fmt"
+ "golang.org/x/sys/unix"
+)
-func IsOfficialPath(path string) bool {
- return true
-}
+// For testing the updater package from linux. Debug stuff only.
func utsToStr(u [65]byte) string {
i := bytes.IndexByte(u[:], 0)
@@ -30,3 +32,7 @@ func OsName() string {
func RunningVersion() string {
return "0.0.0.0"
}
+
+func VerifyAuthenticode(path string) bool {
+ return true
+} \ No newline at end of file