diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/crypto/key_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index 46aceec3d..222fc95ba 100644 --- a/src/core/crypto/key_manager.cpp +++ b/src/core/crypto/key_manager.cpp | |||
| @@ -423,7 +423,7 @@ static std::optional<u64> FindTicketOffset(const std::array<u8, size>& data) { | |||
| 423 | std::optional<std::pair<Key128, Key128>> ParseTicket(const Ticket& ticket, | 423 | std::optional<std::pair<Key128, Key128>> ParseTicket(const Ticket& ticket, |
| 424 | const RSAKeyPair<2048>& key) { | 424 | const RSAKeyPair<2048>& key) { |
| 425 | const auto issuer = ticket.GetData().issuer; | 425 | const auto issuer = ticket.GetData().issuer; |
| 426 | if (issuer == std::array<u8, 0x40>{}) | 426 | if (IsAllZeroArray(issuer)) |
| 427 | return {}; | 427 | return {}; |
| 428 | if (issuer[0] != 'R' || issuer[1] != 'o' || issuer[2] != 'o' || issuer[3] != 't') { | 428 | if (issuer[0] != 'R' || issuer[1] != 'o' || issuer[2] != 'o' || issuer[3] != 't') { |
| 429 | LOG_INFO(Crypto, "Attempting to parse ticket with non-standard certificate authority."); | 429 | LOG_INFO(Crypto, "Attempting to parse ticket with non-standard certificate authority."); |