Visa CTLS 9F34
unknown
c_cpp
7 days ago
1.5 kB
4
Indexable
if (ucKernType == KERNTYPE_VIS) { //LOGGER(LOG_DEBUG, ". %x", TAGUSHORT); if (TAGUSHORT == 0x9f34) { int iRet; int iLen = 0; memset(result9F6C_CVM, 0, sizeof(result9F6C_CVM)); iRet = Clss_GetTLVData_Wave((ushort)0x9F6C, (uchar*)result9F6C_CVM, &iLen); if (iRet) { LOGGER(LOG_ERROR, "Clss_GetTLVData_Wave(9F6C): %d", iRet); } LOGGER(LOG_DEBUG, "2 9F6C [%02X%02X]", result9F6C_CVM[0], result9F6C_CVM[1]); if (result9F6C_CVM[1] & BIT_0) { iRet = Clss_SetTLVData_Wave(0x9F34, (uchar*)"\x5E\x00\x00", 3); APP_STATUS.CVM_no_request_pin_on_c50 = C50_NOCVM; memcpy(tempDataOut, CVM_01, 3); (*iLength) = 3; return TRUE; } else if (result9F6C_CVM[0] & BIT_0)//Bit 8 9F6c Online PIN Required { LOGGER(LOG_DEBUG, "9F6C Online PIN Required"); LOGGER(LOG_DEBUG, "2 9F6C [%02X%02X]", result9F6C_CVM[0], result9F6C_CVM[1]); iRet = Clss_SetTLVData_Wave(0x9F34, (uchar*)"\x42\x00\x00", 3); APP_STATUS.CVM_no_request_pin_on_c50 = C50_PIN; } else if (result9F6C_CVM[0] & BIT_1)//Bit 7 9F6c Signature Required { LOGGER(LOG_DEBUG, "9F6C Signature Required"); iRet = Clss_SetTLVData_Wave(0x9F34, (uchar*)"\x5E\x00\x00", 3); APP_STATUS.CVM_no_request_pin_on_c50 = C50_NOCVM; } else// No CVM { LOGGER(LOG_DEBUG, "9F6C no CVM "); iRet = Clss_SetTLVData_Wave(0x9F34, (uchar*)"\x5F\x00\x00", 3); APP_STATUS.CVM_no_request_pin_on_c50 = C50_NOCVM; } } }
Editor is loading...
Leave a Comment