Check pin flag

This commit is contained in:
Gary Belvin 2021-03-23 22:13:35 +00:00
parent 1ac838628a
commit 341966c30f

View file

@ -119,7 +119,7 @@ func main() {
fatal(err) fatal(err)
} }
if u.Pin() == "" { if u.Pin() == "" && c.Pin == "" {
pin, err := ui.PromptPassword("What is the PKCS#11 PIN?") pin, err := ui.PromptPassword("What is the PKCS#11 PIN?")
if err != nil { if err != nil {
fatal(err) fatal(err)