]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cfg.go
Replace golang.org/x/ssh/terminal with golang.org/x/term
[nncp.git] / src / cfg.go
index d603a5a40edc948c76ace128c9a0bad8b7686f1c..50ad498d647c1af91dacf9d1e5376f0acc73e7a6 100644 (file)
@@ -30,7 +30,7 @@ import (
        "github.com/gorhill/cronexpr"
        "github.com/hjson/hjson-go"
        "golang.org/x/crypto/ed25519"
-       "golang.org/x/crypto/ssh/terminal"
+       "golang.org/x/term"
 )
 
 const (
@@ -377,7 +377,7 @@ func CfgParse(data []byte) (*Ctx, error) {
        var err error
        if bytes.Compare(data[:8], MagicNNCPBv3[:]) == 0 {
                os.Stderr.WriteString("Passphrase:") // #nosec G104
-               password, err := terminal.ReadPassword(0)
+               password, err := term.ReadPassword(0)
                if err != nil {
                        log.Fatalln(err)
                }