mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 20:45:17 -07:00
Don't call sodium_misuse() in the sodium_core test for Javascript/wasm targets
This commit is contained in:
parent
0ce03b6cea
commit
8a14f5c167
@ -27,8 +27,10 @@ main(void)
|
|||||||
(void) sodium_runtime_has_aesni();
|
(void) sodium_runtime_has_aesni();
|
||||||
|
|
||||||
sodium_set_misuse_handler(misuse_handler);
|
sodium_set_misuse_handler(misuse_handler);
|
||||||
|
#ifdef __EMSCRIPTEN__
|
||||||
sodium_misuse();
|
sodium_misuse();
|
||||||
printf("Misuse handler returned\n");
|
printf("Misuse handler returned\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user