add cli parser option
This commit is contained in:
1 parent
7e2fd2a953
commit
be128741e3
2 files changed
+18
No files matched your search
@@ -103,6 +103,15 @@ const CLIParserOption DesfireValueFileOperOpts[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
const CLIParserOption DesfireReadFileTypeOpts[] = {
|
||||
{RFTAuto, "auto"},
|
||||
{RFTData, "data"},
|
||||
{RFTValue, "value"},
|
||||
{RFTRecord, "record"},
|
||||
{RFTMAC, "mac"},
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
static const char *getstatus(uint16_t *sw) {
|
||||
if (sw == NULL) return "--> sw argument error. This should never happen !";
|
||||
if (((*sw >> 8) & 0xFF) == 0x91) {
|
||||
|
||||
@@ -28,6 +28,14 @@ typedef struct {
|
||||
const bool mayHaveISOfid;
|
||||
} DesfireCreateFileCommandsS;
|
||||
|
||||
typedef enum {
|
||||
RFTAuto,
|
||||
RFTData,
|
||||
RFTValue,
|
||||
RFTRecord,
|
||||
RFTMAC,
|
||||
} DesfireReadOpFileType;
|
||||
|
||||
extern const CLIParserOption DesfireAlgoOpts[];
|
||||
extern const CLIParserOption DesfireKDFAlgoOpts[];
|
||||
extern const CLIParserOption DesfireCommunicationModeOpts[];
|
||||
@@ -35,6 +43,7 @@ extern const CLIParserOption DesfireCommandSetOpts[];
|
||||
extern const CLIParserOption DesfireSecureChannelOpts[];
|
||||
extern const CLIParserOption DesfireFileAccessModeOpts[];
|
||||
extern const CLIParserOption DesfireValueFileOperOpts[];
|
||||
extern const CLIParserOption DesfireReadFileTypeOpts[];
|
||||
|
||||
const char *DesfireGetErrorString(int res, uint16_t *sw);
|
||||
uint32_t DesfireAIDByteToUint(uint8_t *data);
|
||||
|
||||
Reference in new issue
Block a user