fix: Crash on exit due to bug in libromfs
This commit is contained in:
parent
23190e1f87
commit
012b82c395
2
external/libromfs
vendored
2
external/libromfs
vendored
@ -1 +1 @@
|
||||
Subproject commit 5b79535ee0fa53da7ffbaef4f37842651f7d2e65
|
||||
Subproject commit 0842d22deb13e036eb1fb15df368b6cad552abfe
|
@ -56,8 +56,8 @@ namespace hex {
|
||||
static mbedtls_x509_crt crt;
|
||||
mbedtls_x509_crt_init(&crt);
|
||||
|
||||
auto cacert = romfs::get("cacert.pem");
|
||||
mbedtls_x509_crt_parse(&crt, reinterpret_cast<const u8*>(cacert.data()), cacert.size() + 1);
|
||||
auto cacert = romfs::get("cacert.pem").string();
|
||||
mbedtls_x509_crt_parse(&crt, reinterpret_cast<const u8*>(cacert.data()), cacert.size());
|
||||
|
||||
mbedtls_ssl_conf_ca_chain(cfg, &crt, nullptr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user