Skip to content

Commit 511ce35

Browse files
authored
actually pass p2 in the pair() method
1 parent e97b679 commit 511ce35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/src/main/java/im/status/keycard/applet/SecureChannelSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public APDUResponse mutuallyAuthenticate(CardChannel apduChannel, byte[] data) t
267267
* @throws IOException communication error
268268
*/
269269
public APDUResponse pair(CardChannel apduChannel, byte p1, byte p2, byte[] data) throws IOException {
270-
APDUCommand pair = new APDUCommand(0x80, INS_PAIR, p1, 0, data);
270+
APDUCommand pair = new APDUCommand(0x80, INS_PAIR, p1, p2, data);
271271
return transmit(apduChannel, pair);
272272
}
273273

0 commit comments

Comments
 (0)