]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/verifier.go
Raise copyright years
[govpn.git] / src / cypherpunks.ru / govpn / verifier.go
index 8be6ea7ac62c1f25e1d2222d4176c7465b7b1c71..0ea94a314f9705185b03a8e440cf557f07283420 100644 (file)
@@ -1,6 +1,6 @@
 /*
 GoVPN -- simple secure free software virtual private network daemon
-Copyright (C) 2014-2017 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2018 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -133,9 +133,9 @@ func KeyRead(path string) (string, error) {
        var err error
        var pass string
        if path == "" {
-               os.Stderr.Write([]byte("Passphrase:"))
+               os.Stderr.WriteString("Passphrase:")
                p, err = terminal.ReadPassword(0)
-               os.Stderr.Write([]byte("\n"))
+               os.Stderr.WriteString("\n")
                pass = string(p)
        } else {
                p, err = ioutil.ReadFile(path)