summaryrefslogtreecommitdiffstats
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-13 14:14:38 +0200
committerLioncash <mathew1800@gmail.com>2018-10-13 14:24:21 +0200
commite70c08b543f1af569a59c672f707128cc31d341d (patch)
tree5c95d27f5d602091c93ccf626f5199820c543832 /src/core/crypto/key_manager.cpp
parentkey_manager: Don't assume file seeks and reads will always succeed (diff)
downloadyuzu-e70c08b543f1af569a59c672f707128cc31d341d.tar
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.tar.gz
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.tar.bz2
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.tar.lz
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.tar.xz
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.tar.zst
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.zip
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-rw-r--r--src/core/crypto/key_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index 14d53bef9..1d77fda79 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -308,10 +308,11 @@ boost::optional<std::pair<Key128, Key128>> ParseTicket(const TicketRaw& ticket,
std::memcpy(&cert_authority, ticket.data() + 0x140, sizeof(cert_authority));
if (cert_authority == 0)
return boost::none;
- if (cert_authority != Common::MakeMagic('R', 'o', 'o', 't'))
+ if (cert_authority != Common::MakeMagic('R', 'o', 'o', 't')) {
LOG_INFO(Crypto,
"Attempting to parse ticket with non-standard certificate authority {:08X}.",
cert_authority);
+ }
Key128 rights_id;
std::memcpy(rights_id.data(), ticket.data() + 0x2A0, sizeof(Key128));