mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
IOS/ES: Verify containers in SetUpStreamKey
This commit is contained in:
parent
36c5caacf4
commit
d77b7ac90e
@ -738,6 +738,19 @@ ReturnCode ES::SetUpStreamKey(const u32 uid, const u8* ticket_view, const IOS::E
|
||||
if (ticket_bytes.empty())
|
||||
return ES_NO_TICKET;
|
||||
|
||||
std::vector<u8> cert_store;
|
||||
ret = ReadCertStore(&cert_store);
|
||||
if (ret != IPC_SUCCESS)
|
||||
return ret;
|
||||
|
||||
ret = VerifyContainer(VerifyContainerType::TMD, VerifyMode::UpdateCertStore, tmd, cert_store);
|
||||
if (ret != IPC_SUCCESS)
|
||||
return ret;
|
||||
ret = VerifyContainer(VerifyContainerType::Ticket, VerifyMode::UpdateCertStore, installed_ticket,
|
||||
cert_store);
|
||||
if (ret != IPC_SUCCESS)
|
||||
return ret;
|
||||
|
||||
// Create the handle and return it.
|
||||
std::array<u8, 16> iv{};
|
||||
std::memcpy(iv.data(), &title_id, sizeof(title_id));
|
||||
|
Loading…
x
Reference in New Issue
Block a user