summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-04 21:44:35 +0200
committerGitHub <noreply@github.com>2019-10-04 21:44:35 +0200
commit7fbaf62bac21a12cc676e8b2737c3744c708667a (patch)
tree2c554b028ffdeb401e2d8888078acf0c1bfcc886 /src
parentMerge pull request #2940 from lioncash/zlib (diff)
parent[crypto] Use IsAllZeroArray helper function (diff)
downloadyuzu-7fbaf62bac21a12cc676e8b2737c3744c708667a.tar
yuzu-7fbaf62bac21a12cc676e8b2737c3744c708667a.tar.gz
yuzu-7fbaf62bac21a12cc676e8b2737c3744c708667a.tar.bz2
yuzu-7fbaf62bac21a12cc676e8b2737c3744c708667a.tar.lz
yuzu-7fbaf62bac21a12cc676e8b2737c3744c708667a.tar.xz
yuzu-7fbaf62bac21a12cc676e8b2737c3744c708667a.tar.zst
yuzu-7fbaf62bac21a12cc676e8b2737c3744c708667a.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/crypto/key_manager.cpp2
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.");