diff options
| author | Shulhan <ms@kilabit.info> | 2022-08-07 01:13:52 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-08-07 01:13:52 +0700 |
| commit | 41c0c1a9146b0aacebf990d00da4e425c91db578 (patch) | |
| tree | 701d2719b17276f0852a9ed81b0bd332f954075f /cli.go | |
| parent | dbfed69ca90f5cd02b969fd714a35acc80f5f703 (diff) | |
| download | gotp-41c0c1a9146b0aacebf990d00da4e425c91db578.tar.xz | |
all: replace golang.org/x/crypto/ssh/terminal with golang.org/x/term
The golang.org/x/crypto/ssh/terminal has been deprecated.
Diffstat (limited to 'cli.go')
| -rw-r--r-- | cli.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,7 +16,7 @@ import ( "github.com/shuLhan/share/lib/totp" "golang.org/x/crypto/ssh" - "golang.org/x/crypto/ssh/terminal" + "golang.org/x/term" ) //go:embed README.adoc @@ -116,7 +116,7 @@ func (cli *Cli) loadPrivateKey(privateKeyFile string, pass []byte) ( stdin = int(os.Stdin.Fd()) - pass, err = terminal.ReadPassword(stdin) + pass, err = term.ReadPassword(stdin) fmt.Println() if err != nil { return nil, fmt.Errorf(`%s %q: %w`, logp, privateKeyFile, err) |
