check OPEN SECURE CHANNEL response

This commit is contained in:
Michele Balistreri 2020-11-09 15:36:50 +01:00
parent 86e6cb60ec
commit 9295aa6553
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
2 changed files with 3 additions and 3 deletions

View File

@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
versionCode 303
versionName "3.0.3"
versionCode 304
versionName "3.0.4"
}
compileOptions {

View File

@ -120,7 +120,7 @@ public class SecureChannelSession {
*/
public void autoOpenSecureChannel(CardChannel apduChannel) throws IOException, APDUException {
APDUResponse response = openSecureChannel(apduChannel, pairing.getPairingIndex(), publicKey);
response.checkOK("OPEN SECURE CHANNEL failed");
processOpenSecureChannelResponse(response);
response = mutuallyAuthenticate(apduChannel);