better error checking on verifyPIN

This commit is contained in:
Michele Balistreri 2021-01-12 11:28:15 +03:00
parent 8fd1534891
commit 9c09588b8b
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A

View File

@ -282,7 +282,7 @@ class SmartCard {
func authenticatedCommandSet(channel: CardChannel, pairingBase64: String, pin: String) throws -> KeycardCommandSet {
let cmdSet = try securedCommandSet(channel: channel, pairingBase64: pairingBase64)
try cmdSet.verifyPIN(pin: pin).checkOK()
try cmdSet.verifyPIN(pin: pin).checkAuthOK()
os_log("pin verified")
return cmdSet;