summaryrefslogtreecommitdiffstats
path: root/src/core/crypto
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-13 14:28:15 +0200
committerLioncash <mathew1800@gmail.com>2018-10-13 14:29:35 +0200
commit06898263f6ef8dc4294a8c7554023320c27b957c (patch)
tree2fd994791a4c61e00259fc9aa95599ab2aee56ff /src/core/crypto
parentkey_manager: Brace long conditional body (diff)
downloadyuzu-06898263f6ef8dc4294a8c7554023320c27b957c.tar
yuzu-06898263f6ef8dc4294a8c7554023320c27b957c.tar.gz
yuzu-06898263f6ef8dc4294a8c7554023320c27b957c.tar.bz2
yuzu-06898263f6ef8dc4294a8c7554023320c27b957c.tar.lz
yuzu-06898263f6ef8dc4294a8c7554023320c27b957c.tar.xz
yuzu-06898263f6ef8dc4294a8c7554023320c27b957c.tar.zst
yuzu-06898263f6ef8dc4294a8c7554023320c27b957c.zip
Diffstat (limited to 'src/core/crypto')
-rw-r--r--src/core/crypto/key_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index 1d77fda79..d2ce4f5bf 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -881,9 +881,9 @@ void KeyManager::DeriveETicket(PartitionDataManager& data) {
"/system/save/80000000000000e2",
"rb+");
+ const auto blob2 = GetTicketblob(save2);
auto res = GetTicketblob(save1);
- const auto res2 = GetTicketblob(save2);
- std::copy(res2.begin(), res2.end(), std::back_inserter(res));
+ res.insert(res.end(), blob2.begin(), blob2.end());
for (const auto& raw : res) {
const auto pair = ParseTicket(raw, rsa_key);