summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ssl/ssl.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-08-26 00:02:32 +0200
committerGitHub <noreply@github.com>2023-08-26 00:02:32 +0200
commit234cc45192cc854a2b1897bd90af86a66ff59ae4 (patch)
treefd3fbed6573a2ab7c55dd71aab3c2ac86353cded /src/core/hle/service/ssl/ssl.cpp
parentregistered_cache: create fake CNMT entries for program updates of multiprogram applications (#11319) (diff)
downloadyuzu-234cc45192cc854a2b1897bd90af86a66ff59ae4.tar
yuzu-234cc45192cc854a2b1897bd90af86a66ff59ae4.tar.gz
yuzu-234cc45192cc854a2b1897bd90af86a66ff59ae4.tar.bz2
yuzu-234cc45192cc854a2b1897bd90af86a66ff59ae4.tar.lz
yuzu-234cc45192cc854a2b1897bd90af86a66ff59ae4.tar.xz
yuzu-234cc45192cc854a2b1897bd90af86a66ff59ae4.tar.zst
yuzu-234cc45192cc854a2b1897bd90af86a66ff59ae4.zip
Diffstat (limited to 'src/core/hle/service/ssl/ssl.cpp')
-rw-r--r--src/core/hle/service/ssl/ssl.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp
index 2cba9e5c9..6c8427b0d 100644
--- a/src/core/hle/service/ssl/ssl.cpp
+++ b/src/core/hle/service/ssl/ssl.cpp
@@ -139,7 +139,6 @@ private:
bool do_not_close_socket = false;
bool get_server_cert_chain = false;
std::shared_ptr<Network::SocketBase> socket;
- bool did_set_host_name = false;
bool did_handshake = false;
Result SetSocketDescriptorImpl(s32* out_fd, s32 fd) {
@@ -174,11 +173,7 @@ private:
Result SetHostNameImpl(const std::string& hostname) {
LOG_DEBUG(Service_SSL, "called. hostname={}", hostname);
ASSERT(!did_handshake);
- Result res = backend->SetHostName(hostname);
- if (res == ResultSuccess) {
- did_set_host_name = true;
- }
- return res;
+ return backend->SetHostName(hostname);
}
Result SetVerifyOptionImpl(u32 option) {
@@ -208,9 +203,6 @@ private:
Result DoHandshakeImpl() {
ASSERT_OR_EXECUTE(!did_handshake && socket, { return ResultNoSocket; });
- ASSERT_OR_EXECUTE_MSG(
- did_set_host_name, { return ResultInternalError; },
- "Expected SetHostName before DoHandshake");
Result res = backend->DoHandshake();
did_handshake = res.IsSuccess();
return res;