use normal channel for sign pinless

This commit is contained in:
Andrea Franz 2019-04-09 13:18:05 +02:00
parent 64f4cc0c4a
commit f4bed2722b
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
3 changed files with 4 additions and 4 deletions

4
Gopkg.lock generated
View File

@ -42,7 +42,7 @@
[[projects]]
branch = "develop"
digest = "1:ec12a985e52f8797c3ae477e6fc24fa178667360d19b3fe2793fc98ee0396c0d"
digest = "1:2758b9d1b36ce6d9dbdb00be76e850d290ec51ac994a12ed6f9a5569c9d5f41c"
name = "github.com/status-im/keycard-go"
packages = [
".",
@ -57,7 +57,7 @@
"types",
]
pruneopts = "NUT"
revision = "6a75e43732427d95355bfb131e43f5353c927450"
revision = "eed60ac3da7066331a43f58b30445889c082fb7a"
[[projects]]
branch = "master"

View File

@ -266,7 +266,7 @@ func (cs *CommandSet) SignPinless(data []byte) (*types.Signature, error) {
return nil, err
}
resp, err := cs.sc.Send(cmd)
resp, err := cs.c.Send(cmd)
if err = cs.checkOK(resp, err); err != nil {
return nil, err
}

View File

@ -174,8 +174,8 @@ func (cs *CommandSet) initializeSession(resp *apdu.Response, hostChallenge []byt
name string
key []byte
}{
{"globalplatform", identifiers.GlobalPlatformDefaultKey},
{"keycard", identifiers.KeycardDevelopmentKey},
{"globalplatform", identifiers.GlobalPlatformDefaultKey},
}
for _, set := range keySets {