Skip to content

Commit

Permalink
Merge pull request #23 from FrankHB/patch-1
Browse files Browse the repository at this point in the history
Fixed is_debuggable_enclave_hash
  • Loading branch information
johnmwshih committed Nov 2, 2016
2 parents 06254e6 + dbd4c2e commit c5198d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qemu/target-i386/sgx_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -3647,10 +3647,10 @@ bool verify_signature(sigstruct_t *sig, uint8_t *signature, uint8_t *modulus,
}

static
bool is_debuggable_enclave_hash(uint8_t hash[32])
bool is_debuggable_enclave_hash(const uint8_t* hash)
{
int i;
for (i = 0; i < sizeof(hash); i ++)
for (i = 0; i < 32; i ++)
if (hash[i] != 0)
return false;
return true;
Expand Down

0 comments on commit c5198d7

Please sign in to comment.