chg: 'trace list 7816' - missing command

chg: 'sc raw' - inverted select logic
This commit is contained in:
Chris 2018-11-13 22:29:33 +01:00
commit 73230c8d15
3 changed files with 4 additions and 3 deletions

View file

@ -356,6 +356,7 @@ void annotateIso7816(char *exp, size_t size, uint8_t* cmd, uint8_t cmdsize){
case ISO7816_EXTERNAL_AUTHENTICATION :snprintf(exp, size, "EXTERNAL AUTH");break;
case ISO7816_GET_CHALLENGE :snprintf(exp, size, "GET CHALLENGE");break;
case ISO7816_MANAGE_CHANNEL :snprintf(exp, size, "MANAGE CHANNEL");break;
case ISO7816_GETSTATUS :snprintf(exp, size, "GET RESPONSE");break;
default :snprintf(exp,size,"?"); break;
}
}

View file

@ -200,8 +200,8 @@ int CmdSmartRaw(const char *Cmd) {
if (active || active_select) {
c.arg[0] |= SC_CONNECT;
if (active)
c.arg[0] |= SC_NO_SELECT;
if (active_select)
c.arg[0] |= SC_SELECT;
}
if (hexlen > 0) {

View file

@ -109,7 +109,7 @@ typedef enum SMARTCARD_COMMAND {
SC_CONNECT = (1 << 0),
SC_NO_DISCONNECT = (1 << 1),
SC_RAW = (1 << 2),
SC_NO_SELECT = (1 << 3)
SC_SELECT = (1 << 3)
} smartcard_command_t;
//-----------------------------------------------------------------------------