The Smart Card Detective (SCD)
scd_values.h
Go to the documentation of this file.
00001 
00032 #ifndef _SCD_VALUES_H_
00033 #define _SCD_VALUES_H_
00034 
00035 typedef enum retstat{
00036     RET_SUCCESS = 0,
00037 
00038     // General errors
00039     RET_ERROR =                          0x01,
00040     RET_ERR_CHECK =                      0x02,
00041     RET_ERR_PARAM =                      0x03,
00042     RET_ERR_MEMORY =                     0x04,
00043 
00044     // ICC errors
00045     RET_ICC_INIT_ACTIVATE =              0x10,
00046     RET_ICC_INIT_RESPONSE =              0x11,
00047     RET_ICC_INIT_ATR_TS =                0x12,
00048     RET_ICC_INIT_ATR_T0 =                0x13,
00049     RET_ICC_INIT_ATR_TB1 =               0x14,
00050     RET_ICC_INIT_ATR_TD1 =               0x15,
00051     RET_ICC_INIT_ATR_TA2 =               0x16,
00052     RET_ICC_INIT_ATR_TB2 =               0x17,
00053     RET_ICC_INIT_ATR_TC2 =               0x18,
00054     RET_ICC_INIT_ATR_TA3 =               0x19,
00055     RET_ICC_INIT_ATR_TB3 =               0x10,
00056     RET_ICC_INIT_ATR_TC3 =               0x1A,
00057     RET_ICC_INIT_ATR_T1_CHECK =          0x1B,
00058     RET_ICC_BAD_PROTO =                  0x1C,
00059     RET_ICC_TIME_OUT =                   0x1D,
00060     RET_ICC_SEND_CMD =                   0x1E,
00061     RET_ICC_GET_RESPONSE =               0x1F,
00062 
00063     // Terminal conditions
00064     RET_TERMINAL_RESET_LOW =             0x20,
00065     RET_TERMINAL_TIME_OUT =              0x21,
00066     RET_TERMINAL_GET_CMD =               0x22,
00067     RET_TERMINAL_SEND_RESPONSE =         0x22,
00068     RET_TERMINAL_ENCRYPTED_PIN =         0x23,
00069     RET_TERMINAL_NO_CLOCK =              0x24,
00070 
00071     // EMV protocol/command errors
00072     RET_EMV_SELECT =                     0x30,
00073     RET_EMV_INIT_TRANSACTION =           0x31,
00074     RET_EMV_READ_DATA =                  0x32,
00075     RET_EMV_GET_DATA =                   0x33,
00076     RET_EMV_DDA =                        0x34,
00077     RET_EMV_PIN_TRY_EXCEEDED =           0x35,
00078     RET_EMV_GENERATE_AC =                0x35,
00079 } RETURN_CODE;
00080 
00081 #endif // _SCD_VALUES_H_
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines