summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ssl/ssl.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-01-30 21:17:09 +0100
committerGitHub <noreply@github.com>2023-01-30 21:17:09 +0100
commited4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a (patch)
tree54b6ce04e859b1dee33f4331f392c0d645f4db43 /src/core/hle/service/ssl/ssl.cpp
parentMerge pull request #9701 from german77/common_protocol (diff)
parenthle_ipc: Use thread_local ReadBuffer (diff)
downloadyuzu-ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a.tar
yuzu-ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a.tar.gz
yuzu-ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a.tar.bz2
yuzu-ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a.tar.lz
yuzu-ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a.tar.xz
yuzu-ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a.tar.zst
yuzu-ed4a88bd93c93ac1aaf5b6bae7d8ede10ff0338a.zip
Diffstat (limited to 'src/core/hle/service/ssl/ssl.cpp')
-rw-r--r--src/core/hle/service/ssl/ssl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp
index 3735e0452..dcf47083f 100644
--- a/src/core/hle/service/ssl/ssl.cpp
+++ b/src/core/hle/service/ssl/ssl.cpp
@@ -101,7 +101,7 @@ private:
void ImportServerPki(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto certificate_format = rp.PopEnum<CertificateFormat>();
- const auto pkcs_12_certificates = ctx.ReadBuffer(0);
+ [[maybe_unused]] const auto pkcs_12_certificates = ctx.ReadBuffer(0);
constexpr u64 server_id = 0;
@@ -113,13 +113,13 @@ private:
}
void ImportClientPki(Kernel::HLERequestContext& ctx) {
- const auto pkcs_12_certificate = ctx.ReadBuffer(0);
- const auto ascii_password = [&ctx] {
+ [[maybe_unused]] const auto pkcs_12_certificate = ctx.ReadBuffer(0);
+ [[maybe_unused]] const auto ascii_password = [&ctx] {
if (ctx.CanReadBuffer(1)) {
return ctx.ReadBuffer(1);
}
- return std::vector<u8>{};
+ return std::span<const u8>{};
}();
constexpr u64 client_id = 0;