check OPEN SECURE CHANNEL response
This commit is contained in:
parent
86e6cb60ec
commit
9295aa6553
|
@ -8,8 +8,8 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 19
|
minSdkVersion 19
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode 303
|
versionCode 304
|
||||||
versionName "3.0.3"
|
versionName "3.0.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
|
|
@ -120,7 +120,7 @@ public class SecureChannelSession {
|
||||||
*/
|
*/
|
||||||
public void autoOpenSecureChannel(CardChannel apduChannel) throws IOException, APDUException {
|
public void autoOpenSecureChannel(CardChannel apduChannel) throws IOException, APDUException {
|
||||||
APDUResponse response = openSecureChannel(apduChannel, pairing.getPairingIndex(), publicKey);
|
APDUResponse response = openSecureChannel(apduChannel, pairing.getPairingIndex(), publicKey);
|
||||||
|
response.checkOK("OPEN SECURE CHANNEL failed");
|
||||||
processOpenSecureChannelResponse(response);
|
processOpenSecureChannelResponse(response);
|
||||||
|
|
||||||
response = mutuallyAuthenticate(apduChannel);
|
response = mutuallyAuthenticate(apduChannel);
|
||||||
|
|
Loading…
Reference in New Issue