diff options
author | vperus <vperus@gmail.com> | 2019-10-02 18:20:45 +0200 |
---|---|---|
committer | vperus <vperus@gmail.com> | 2019-10-02 18:20:45 +0200 |
commit | 29b1d0db0fb52c1911465fd0e79d0612a47872bf (patch) | |
tree | b23ac5fde225ccafa9cfe7e293ac470da4078730 /src/core/crypto/key_manager.cpp | |
parent | Merge pull request #2932 from DarkLordZach/azure-gitpages (diff) | |
download | yuzu-29b1d0db0fb52c1911465fd0e79d0612a47872bf.tar yuzu-29b1d0db0fb52c1911465fd0e79d0612a47872bf.tar.gz yuzu-29b1d0db0fb52c1911465fd0e79d0612a47872bf.tar.bz2 yuzu-29b1d0db0fb52c1911465fd0e79d0612a47872bf.tar.lz yuzu-29b1d0db0fb52c1911465fd0e79d0612a47872bf.tar.xz yuzu-29b1d0db0fb52c1911465fd0e79d0612a47872bf.tar.zst yuzu-29b1d0db0fb52c1911465fd0e79d0612a47872bf.zip |
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-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) { std::optional<std::pair<Key128, Key128>> ParseTicket(const Ticket& ticket, const RSAKeyPair<2048>& key) { const auto issuer = ticket.GetData().issuer; - if (issuer == std::array<u8, 0x40>{}) + if (IsAllZeroArray(issuer)) return {}; if (issuer[0] != 'R' || issuer[1] != 'o' || issuer[2] != 'o' || issuer[3] != 't') { LOG_INFO(Crypto, "Attempting to parse ticket with non-standard certificate authority."); |