aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/version/debugging_linux.go
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
commitc3488b9382b08a7fde24955f6342403576847d6a (patch)
treedd08e02b053b0cf27a75ed2e428701b1799e3bf1 /version/debugging_linux.go
parentui: do tray click action when popup clicked (diff)
downloadwireguard-windows-c3488b9382b08a7fde24955f6342403576847d6a.tar.xz
wireguard-windows-c3488b9382b08a7fde24955f6342403576847d6a.zip
updater: move into manager
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'version/debugging_linux.go')
-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