summaryrefslogtreecommitdiff
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
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,
308 std::memcpy(&cert_authority, ticket.data() + 0x140, sizeof(cert_authority)); 308 std::memcpy(&cert_authority, ticket.data() + 0x140, sizeof(cert_authority));
309 if (cert_authority == 0) 309 if (cert_authority == 0)
310 return boost::none; 310 return boost::none;
311 if (cert_authority != Common::MakeMagic('R', 'o', 'o', 't')) 311 if (cert_authority != Common::MakeMagic('R', 'o', 'o', 't')) {
312 LOG_INFO(Crypto, 312 LOG_INFO(Crypto,
313 "Attempting to parse ticket with non-standard certificate authority {:08X}.", 313 "Attempting to parse ticket with non-standard certificate authority {:08X}.",
314 cert_authority); 314 cert_authority);
315 }
315 316
316 Key128 rights_id; 317 Key128 rights_id;
317 std::memcpy(rights_id.data(), ticket.data() + 0x2A0, sizeof(Key128)); 318 std::memcpy(rights_id.data(), ticket.data() + 0x2A0, sizeof(Key128));