summaryrefslogtreecommitdiff
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-10-13 08:14:38 -0400
committerGravatar Lioncash2018-10-13 08:24:21 -0400
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.gz
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.tar.xz
yuzu-e70c08b543f1af569a59c672f707128cc31d341d.zip
key_manager: Brace long conditional body
If a conditional (or it's body) travels more than one line, it should be braced.
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));