chg: moved to header file

This commit is contained in:
iceman1001 2017-01-21 11:29:16 +01:00
parent 793c301250
commit 7dcd37fc2e
2 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,7 @@
// ICEMAN 2017, this file looks similar to emvdataels.h headerfile.
//Data elements for EMV transactions.
#include <stdint.h>
#ifndef __EMVDATAELS_H
#define __EMVDATAELS_H
#include "emvdataels.h"
@ -8,7 +10,7 @@
typedef struct{
uint8_t tag[2];
char description[255];
}tagdescription;
} tagdescription;
const uint8_t AID_VISA[] = {0xa0,0x00,0x00,0x00,0x03};
const uint8_t AID_VISA_DB[] = {0xa0,0x00,0x00,0x00,0x03,0x10,0x10};
@ -123,5 +125,4 @@ const tagdescription EMV_TAG_LIST[] = {
//human readable error messages
#endif //__EMVDATAELS_H

View file

@ -1,7 +1,9 @@
//Data elements for EMV transactions.
#include <stdint.h>
#ifndef __EMVDATAELS_H
#define __EMVDATAELS_H
#include <stdint.h>
//Known AIDs
extern const uint8_t AID_VISA[5];
extern const uint8_t AID_VISA_DB[7] ;
@ -27,7 +29,7 @@ extern const uint8_t DF_PSE[];
typedef struct{
uint8_t tag[2];
char description[255];
}tagdescription;
} tagdescription;
extern const tagdescription EMV_TAG_LIST[62]; //SW1 return values
extern const uint8_t SW1_RESPONSE_BYTES[];