summaryrefslogtreecommitdiffstats
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-09-14 22:47:25 +0200
committerLioncash <mathew1800@gmail.com>2020-09-14 22:49:59 +0200
commite0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a (patch)
tree3ef2537360711465dc0b08a79aa22a4180aa4f49 /src/core/crypto/key_manager.cpp
parentMerge pull request #4651 from lioncash/kernel-global (diff)
downloadyuzu-e0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a.tar
yuzu-e0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a.tar.gz
yuzu-e0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a.tar.bz2
yuzu-e0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a.tar.lz
yuzu-e0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a.tar.xz
yuzu-e0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a.tar.zst
yuzu-e0dd440b1ff9bf4578d7b69912dfe4283bfd4e6a.zip
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-rw-r--r--src/core/crypto/key_manager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index dc591c730..65d246050 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -23,7 +23,6 @@
#include "common/hex_util.h"
#include "common/logging/log.h"
#include "common/string_util.h"
-#include "core/core.h"
#include "core/crypto/aes_util.h"
#include "core/crypto/key_manager.h"
#include "core/crypto/partition_data_manager.h"
@@ -1022,10 +1021,10 @@ void KeyManager::DeriveBase() {
}
}
-void KeyManager::DeriveETicket(PartitionDataManager& data) {
+void KeyManager::DeriveETicket(PartitionDataManager& data,
+ const FileSys::ContentProvider& provider) {
// ETicket keys
- const auto es = Core::System::GetInstance().GetContentProvider().GetEntry(
- 0x0100000000000033, FileSys::ContentRecordType::Program);
+ const auto es = provider.GetEntry(0x0100000000000033, FileSys::ContentRecordType::Program);
if (es == nullptr) {
return;