Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
chg: 'sc raw' adjusted output
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jul 8, 2018
1 parent 99eaef2 commit c8e1eb1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions client/cmdsmartcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,19 @@ int CmdSmartRaw(const char *Cmd) {
PrintAndLogEx(WARNING, "smart card response failed");
return 1;
}
PrintAndLogEx(SUCCESS,"isOK %d | %d | resp: %s",
resp.arg[0],
resp.arg[1],
sprint_hex(resp.d.asBytes, resp.arg[1])
);

if ( !resp.arg[0] ) {
PrintAndLogEx(WARNING, "smart card response failed");
return 1;
}

uint32_t len = resp.arg[1];
PrintAndLogEx(INFO, "received %i bytes:", len);

if (!len)
return 1;

PrintAndLogEx(SUCCESS, "%s", sprint_hex(resp.d.asBytes, len) );
}
return 0;
}
Expand Down

0 comments on commit c8e1eb1

Please sign in to comment.