diff --git a/tests/test.c b/tests/test.c index 222d760..52e29d1 100644 --- a/tests/test.c +++ b/tests/test.c @@ -240,7 +240,15 @@ int main() { ok(rnode_set_signature(&rn, signature) == 0, "Set signature"); - free(signature); + OPENSSL_free(signature); + + ok(rnode_set_lock(&rn) == 0, "Set EEPROM lock"); + + uint8_t hash[32]; + + memcpy(hash, (uint8_t[32]){0x56, 0x92, 0x82, 0xa8, 0x3a, 0xbf, 0x21, 0xa5, 0x9c, 0x74, 0x9c, 0x7f, 0x96, 0xe0, 0x09, 0x12, 0x8d, 0xbf, 0x13, 0x9b, 0x99, 0xd2, 0x9c, 0x0b, 0x6f, 0x13, 0xd0, 0xb0, 0x4e, 0xe8, 0x6d, 0xac}, 32*sizeof(uint8_t)); + + ok(rnode_set_fw_hash(&rn, hash) == 0, "Set firmware hash"); ok(rnode_cleanup(&rn) == 0, "RNode cleanup");