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=f70a3aa49e188be843952738d8ad4eb3a6f1341a;hpb=8b1de1c28a4ef7b651d0196cac4d63eca35b93d1 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)