Fixed build errors on osx
This commit is contained in:
@@ -2219,7 +2219,7 @@ static int CmdHf14AFindapdu(const char *Cmd) {
|
||||
|
||||
bool inc_p1 = true;
|
||||
bool skip_ins = false;
|
||||
uint64_t all_sw[256][256] = {0};
|
||||
uint64_t all_sw[256][256] = { { 0 } };
|
||||
uint64_t sw_occurences = 0;
|
||||
uint64_t t_start = msclock();
|
||||
uint64_t t_last_reset = msclock();
|
||||
|
||||
@@ -1777,8 +1777,8 @@ int infoHF_EMRTD(char *documentnumber, char *dob, char *expiry, bool BAC_availab
|
||||
}
|
||||
|
||||
// Grab the hash list
|
||||
uint8_t dg_hashes_sod[17][64] = { 0x00 };
|
||||
uint8_t dg_hashes_calc[17][64] = { 0x00 };
|
||||
uint8_t dg_hashes_sod[17][64] = { { 0 } };
|
||||
uint8_t dg_hashes_calc[17][64] = { { 0 } };
|
||||
int hash_algo = 0;
|
||||
|
||||
if (!emrtd_select_and_read(response, &resplen, dg_table[EF_SOD].fileid, ks_enc, ks_mac, ssc, BAC, use_14b)) {
|
||||
@@ -1856,8 +1856,8 @@ int infoHF_EMRTD_offline(const char *path) {
|
||||
free(data);
|
||||
|
||||
// Grab the hash list
|
||||
uint8_t dg_hashes_sod[17][64] = { 0x00 };
|
||||
uint8_t dg_hashes_calc[17][64] = { 0x00 };
|
||||
uint8_t dg_hashes_sod[17][64] = { { 0 } };
|
||||
uint8_t dg_hashes_calc[17][64] = { { 0 } };
|
||||
int hash_algo = 0;
|
||||
|
||||
strcpy(filepath, path);
|
||||
|
||||
Reference in New Issue
Block a user