X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9206d3b0342c5d0a594715eab06f6db232329c8d..a32e8034e04c7f78de2d3345c4ad3d2ce56d38fc:/armsrc/emvutil.c diff --git a/armsrc/emvutil.c b/armsrc/emvutil.c index e35cb1ef..6fd60f75 100644 --- a/armsrc/emvutil.c +++ b/armsrc/emvutil.c @@ -8,19 +8,7 @@ //----------------------------------------------------------------------------- // various EMV related functions. //----------------------------------------------------------------------------- -#include -#include "proxmark3.h" -#include "apps.h" -#include "util.h" -#include "string.h" - -#include "BigBuf.h" - -#include "iso14443crc.h" -#include "iso14443a.h" #include "emvutil.h" -#include "emvdataels.h" //EMV data elements -#include "emvtags.h" //EMV card structure #define DUMP(varname) Dbprintf("%s=", #varname); @@ -382,14 +370,18 @@ exitfunction: //goto label to exit search quickly once found //function to int emv_settag(uint32_t tag, uint8_t *datain, emvtags *currentcard){ char binarydata[255] = {0}; - //if((strlen((const char *)datain)%2) != 0){ //must be an even string + + /* + // if((strlen((const char *)datain)%2) != 0){ //must be an even string // return -1; - //} - //if(strlen((const char *)datain) > 255) { + // } + // if(strlen((const char *)datain) > 255) { // return -1; - //} - uint8_t datalen = strlen((const char *)datain) / 2; //length of datain - for(int i=0;i