Merge pull request #1153 from matrix/fix_osx_build_1

Fixed build errors on osx
This commit is contained in:
Iceman 2020-12-31 00:47:01 +01:00 committed by GitHub
commit 349ecbd18c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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();

View file

@ -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);