Cleanup Windows linker errors, Added null check in get_mx25519_impl, Fixed coverage pages copy
This commit is contained in:
@@ -59,7 +59,13 @@ static const mx25519_impl* get_mx25519_impl()
|
||||
{
|
||||
static std::once_flag of;
|
||||
static const mx25519_impl *impl;
|
||||
std::call_once(of, [&](){ impl = mx25519_select_impl(MX25519_TYPE_AUTO); });
|
||||
std::call_once(of, [&](){
|
||||
impl = mx25519_select_impl(MX25519_TYPE_AUTO);
|
||||
if (!impl) {
|
||||
LOGERR(0, "Failed to select mx25519 implementation - unsupported platform");
|
||||
PANIC_STOP();
|
||||
}
|
||||
});
|
||||
return impl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user