Ver Fonte

Merge pull request #612 from gdbelvin/kmspin

Allow reading pin from kms string
Mariano Cano há 5 anos atrás
pai
commit
a0633a6efb
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      cmd/step-pkcs11-init/main.go

+ 1 - 1
cmd/step-pkcs11-init/main.go

@@ -129,7 +129,7 @@ func main() {
 		fatal(err)
 		fatal(err)
 	}
 	}
 
 
-	if u.Pin() == "" && c.Pin == "" {
+	if u.Get("pin-value") == "" && u.Get("pin-source") == "" && 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)