Use boringssl instead of openssl to implement wasm cache loading (#1804)

This commit is contained in:
liang.he
2022-12-20 14:37:07 +08:00
committed by Wenyong Huang
parent d267121c88
commit b826a84cd6
6 changed files with 52 additions and 14 deletions
+1 -1
View File
@@ -2183,7 +2183,7 @@ wasm_module_new(wasm_store_t *store, const wasm_byte_vec_t *binary)
#if WASM_ENABLE_WASM_CACHE != 0
/* if cached */
SHA256((void *)binary->data, binary->num_elems, binary_hash);
SHA256((void *)binary->data, binary->num_elems, (uint8_t *)binary_hash);
module_ex = try_reuse_loaded_module(store, binary_hash);
if (module_ex)
return module_ext_to_module(module_ex);