upgrade code to work with develoment version of libnfc (upcomming 1.4.0)

Update code to match with the new API;
Sync nfc-utils.[ch] from libnfc's repo;
Update ./configure to detect libnfc 1.4.0;
This commit is contained in:
Romuald Conty
2010-11-02 09:36:39 +00:00
parent 2072e323bb
commit 0320ded902
5 changed files with 554 additions and 45 deletions

View File

@@ -40,7 +40,7 @@ typedef struct {
} denonce; // Revealed information about nonce
typedef struct {
nfc_target_info_t ti;
nfc_target_t nt;
sector * sectors; // Allocate later, we do not know the number of sectors yet
sector e_sector; // Exploit sector
uint32_t num_sectors;
@@ -72,7 +72,7 @@ typedef struct {
void usage(FILE * stream, int errno);
void mf_init(mftag *t, mfreader *r);
void mf_configure(nfc_device_t* pdi);
void mf_select_tag(nfc_device_t* pdi, nfc_target_info_t* ti);
void mf_select_tag(nfc_device_t* pdi, nfc_target_t* pnt);
int trailer_block(uint32_t block);
int find_exploit_sector(mftag t);
void mf_anticollision(mftag t, mfreader r);