-
Notifications
You must be signed in to change notification settings - Fork 0
/
configCli.h
74 lines (65 loc) · 2.44 KB
/
configCli.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/**
* @file configCli.h
* @author NXP Semiconductors
* @version 1.0
* @par License
* Copyright 2017 NXP
*
* This software is owned or controlled by NXP and may only be used
* strictly in accordance with the applicable license terms. By expressly
* accepting such terms or by downloading, installing, activating and/or
* otherwise using the software, you are agreeing that you have read, and
* that you agree to comply with and are bound by, such license terms. If
* you do not agree to be bound by the applicable license terms, then you
* may not retain, install, activate or otherwise use the software.
*
* @par Description
* Command line handling functions
*/
#ifndef _CONFIG_CLI_H_
#define _CONFIG_CLI_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
// project specific include files
#include "sm_types.h"
#include "sm_apdu.h"
#include "tst_sm_util.h"
#include "tst_a71ch_util.h"
#include "probeAxUtil.h"
#include "axCliUtil.h"
// #include "axHostCrypto.h"
// #include "tstHostCrypto.h"
#ifdef __cplusplus
extern "C" {
#endif
#define AX_INTERACTIVE_MODE_OFF 0
#define AX_INTERACTIVE_MODE_ON 1
#define AX_LINE_MAX 1024
#define AX_FILENAME_MAX 256
int a7xConfigCliHelp(char *szName);
int a7xConfigCli(char *progname, int argc, char **argv);
int a7xConfigCliGetInteractiveMode();
int a7xConfigCliCmdApdu(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdConnect(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdDebug(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdErase(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdGen(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdInfo(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdInteractive(int argc, char **argv);
int a7xConfigCliCmdLock(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdRefpem(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdScp(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdScript(int argc, char **argv);
int a7xConfigCliCmdSet(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdTransport(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdWcrt(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdRcrt(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdEcrt(int argc, char **argv, U16 *sw);
int a7xConfigCliCmdObj(int argc, char ** argv, U16 *sw);
int a7xConfigCliCmdGet(int argc, char ** argv, U16 *sw);
#ifdef __cplusplus
}
#endif
#endif // _CONFIG_CLI_H_