mirror of https://github.com/docker/docs.git
only tell user to touch when mode is enabled
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
parent
b0354762d1
commit
8ffbf116cc
|
@ -343,8 +343,10 @@ func sign(ctx *pkcs11.Ctx, session pkcs11.SessionHandle, pkcs11KeyID []byte, pas
|
||||||
// Get the SHA256 of the payload
|
// Get the SHA256 of the payload
|
||||||
digest := sha256.Sum256(payload)
|
digest := sha256.Sum256(payload)
|
||||||
|
|
||||||
touchToSignUI()
|
if (yubikeyKeymode & KeymodeTouch) > 0 {
|
||||||
defer touchDoneCallback()
|
touchToSignUI()
|
||||||
|
defer touchDoneCallback()
|
||||||
|
}
|
||||||
sig, err = ctx.Sign(session, digest[:])
|
sig, err = ctx.Sign(session, digest[:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Debugf("Error while signing: %s", err)
|
logrus.Debugf("Error while signing: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue