X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fverifier.go;h=a452a50a84737231a2e0e3d28701dee10138bf23;hb=3fad5bcb9348ccb276db940c0c56e58790545ac4;hp=0dc9388188ad0e1f0c29eec611e7218cae32b687;hpb=cecb63f12f4a9f523276a0c19c7feb7437c7f53a;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/verifier.go b/src/cypherpunks.ru/govpn/verifier.go index 0dc9388..a452a50 100644 --- a/src/cypherpunks.ru/govpn/verifier.go +++ b/src/cypherpunks.ru/govpn/verifier.go @@ -25,6 +25,7 @@ import ( "fmt" "io/ioutil" "log" + "os" "strings" "github.com/agl/ed25519" @@ -125,9 +126,9 @@ func KeyRead(path string) (string, error) { var err error var pass string if path == "" { - fmt.Print("Passphrase:") + os.Stderr.Write([]byte("Passphrase:")) p, err = terminal.ReadPassword(0) - fmt.Print("\n") + os.Stderr.Write([]byte("\n")) pass = string(p) } else { p, err = ioutil.ReadFile(path)