X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fverifier.go;fp=src%2Fcypherpunks.ru%2Fgovpn%2Fverifier.go;h=26e0275df46e7db2226c9d8b388663e530ed4a7a;hp=8be6ea7ac62c1f25e1d2222d4176c7465b7b1c71;hb=9ca3abcde76628d14eb0c53629a8235a983f0b87;hpb=327275b9837d77d668abc58ef768d0f9fabfa16b diff --git a/src/cypherpunks.ru/govpn/verifier.go b/src/cypherpunks.ru/govpn/verifier.go index 8be6ea7..26e0275 100644 --- a/src/cypherpunks.ru/govpn/verifier.go +++ b/src/cypherpunks.ru/govpn/verifier.go @@ -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)