From f467a15e833b5f655d146068b90e2d8c39a45505 Mon Sep 17 00:00:00 2001 From: zeph <35661622+ZephyrCodesStuff@users.noreply.github.com> Date: Sun, 7 Dec 2025 18:15:14 +0100 Subject: [PATCH] Clans: using config for host - Enabled SSL host verification Signed-off-by: zeph <35661622+ZephyrCodesStuff@users.noreply.github.com> --- rpcs3/Emu/NP/clans_client.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/NP/clans_client.cpp b/rpcs3/Emu/NP/clans_client.cpp index 7ec8177346..8291c23c77 100644 --- a/rpcs3/Emu/NP/clans_client.cpp +++ b/rpcs3/Emu/NP/clans_client.cpp @@ -3,13 +3,13 @@ #include #include +#include #include #include LOG_CHANNEL(clan_log, "clans"); -const char* HOST_VIEW = "clans-view01.ww.np.community.playstation.net"; -const char* HOST_UPDATE = "clans-rec01.ww.np.community.playstation.net"; + const char* REQ_TYPE_FUNC = "func"; const char* REQ_TYPE_SEC = "sec"; @@ -179,7 +179,7 @@ namespace clan reqType = ClanRequestType::SEC; } - std::string host = opType == ClanManagerOperationType::VIEW ? HOST_VIEW : HOST_UPDATE; + std::string host = g_cfg_clans.get_host(); std::string url = std::format("https://{}/clan_manager_{}/{}/{}", host, opType, reqType, action); std::ostringstream oss; @@ -193,8 +193,6 @@ namespace clan std::vector response_buffer; curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); - curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); - curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curlWriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response_buffer); curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, err_buf);