mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-01 13:14:30 +08:00
fix: added missing emv function. WITH_EMV compiles now.
This commit is contained in:
parent
dd870ece28
commit
3839ce006d
3 changed files with 18 additions and 3 deletions
|
@ -18,7 +18,6 @@
|
|||
#include "string.h"
|
||||
#include "iso14443crc.h"
|
||||
#include "iso14443a.h"
|
||||
#include "emvcmd.h"
|
||||
#include "emvutil.h"
|
||||
#include "emvdataels.h"
|
||||
#include "emvcard.h"
|
||||
|
|
|
@ -1360,6 +1360,24 @@ int emv_select(uint8_t* AID, uint8_t AID_len, void* data)
|
|||
return iso14_apdu(selectCmd, selectCmd_len, data);
|
||||
}
|
||||
|
||||
|
||||
int emv_selectPPSE()
|
||||
{
|
||||
int isOK = 0;
|
||||
//PPSE directory = "2PAY.SYS.DDF01"
|
||||
//uint8_t AID[14] = {0x32,0x50,0x41,0x59,0x2E,0x53,0x59,0x53,0x2E,0x44,0x44,0x46,0x30,0x31};
|
||||
while(true) {
|
||||
if(!emv_select((uint8_t*)DF_PSE, 14, NULL)){
|
||||
if(MF_DBGLEVEL >= 1) Dbprintf("SELECT PPSE FAILED");
|
||||
break;
|
||||
}
|
||||
isOK=1;
|
||||
break;
|
||||
}
|
||||
if(MF_DBGLEVEL >= 2) DbpString("SELECT_PPSE Finished");
|
||||
return isOK;
|
||||
}
|
||||
|
||||
//perform READ RECORD
|
||||
int emv_readrecord(uint8_t recordnumber, uint8_t sfi, void* data)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// Peter Fillmore 2014
|
||||
// code derived off merloks mifare code
|
||||
//
|
||||
//
|
||||
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
||||
// at your option, any later version. See the LICENSE.txt file for the text of
|
||||
// the license.
|
||||
|
@ -23,7 +22,6 @@
|
|||
#include "BigBuf.h"
|
||||
#include "iso14443crc.h"
|
||||
#include "iso14443a.h"
|
||||
#include "emvutil.h"
|
||||
#include "emvdataels.h" //EMV data elements
|
||||
#include "emvtags.h" //EMV card structure
|
||||
|
||||
|
|
Loading…
Reference in a new issue