diff options
| author | 2023-07-17 15:38:28 -0400 | |
|---|---|---|
| committer | 2023-07-17 15:46:24 -0400 | |
| commit | e0fb1d3d172d4372a1216e939b3cac941782b09e (patch) | |
| tree | 7fbcd2deee057367f169f899559f21a549a04868 | |
| parent | network: Forward declarations (diff) | |
| download | yuzu-e0fb1d3d172d4372a1216e939b3cac941782b09e.tar.gz yuzu-e0fb1d3d172d4372a1216e939b3cac941782b09e.tar.xz yuzu-e0fb1d3d172d4372a1216e939b3cac941782b09e.zip | |
ssl: Reorder inclusions
Diffstat (limited to '')
| -rw-r--r-- | src/common/socket_types.h | 5 | ||||
| -rw-r--r-- | src/core/hle/service/ssl/ssl_backend.h | 8 | ||||
| -rw-r--r-- | src/core/hle/service/ssl/ssl_backend_none.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/ssl/ssl_backend_openssl.cpp | 16 | ||||
| -rw-r--r-- | src/core/hle/service/ssl/ssl_backend_schannel.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/ssl/ssl_backend_securetransport.cpp | 15 |
6 files changed, 30 insertions, 26 deletions
diff --git a/src/common/socket_types.h b/src/common/socket_types.h index b2191c2e8..63824a5c4 100644 --- a/src/common/socket_types.h +++ b/src/common/socket_types.h | |||
| @@ -3,9 +3,10 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | ||
| 7 | |||
| 8 | #include <optional> | 6 | #include <optional> |
| 7 | #include <string> | ||
| 8 | |||
| 9 | #include "common/common_types.h" | ||
| 9 | 10 | ||
| 10 | namespace Network { | 11 | namespace Network { |
| 11 | 12 | ||
diff --git a/src/core/hle/service/ssl/ssl_backend.h b/src/core/hle/service/ssl/ssl_backend.h index 25c16bcc1..409f4367c 100644 --- a/src/core/hle/service/ssl/ssl_backend.h +++ b/src/core/hle/service/ssl/ssl_backend.h | |||
| @@ -3,15 +3,15 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/result.h" | ||
| 7 | |||
| 8 | #include "common/common_types.h" | ||
| 9 | |||
| 10 | #include <memory> | 6 | #include <memory> |
| 11 | #include <span> | 7 | #include <span> |
| 12 | #include <string> | 8 | #include <string> |
| 13 | #include <vector> | 9 | #include <vector> |
| 14 | 10 | ||
| 11 | #include "common/common_types.h" | ||
| 12 | |||
| 13 | #include "core/hle/result.h" | ||
| 14 | |||
| 15 | namespace Network { | 15 | namespace Network { |
| 16 | class SocketBase; | 16 | class SocketBase; |
| 17 | } | 17 | } |
diff --git a/src/core/hle/service/ssl/ssl_backend_none.cpp b/src/core/hle/service/ssl/ssl_backend_none.cpp index f2f0ef706..2f4f23c42 100644 --- a/src/core/hle/service/ssl/ssl_backend_none.cpp +++ b/src/core/hle/service/ssl/ssl_backend_none.cpp | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/ssl/ssl_backend.h" | ||
| 5 | |||
| 6 | #include "common/logging/log.h" | 4 | #include "common/logging/log.h" |
| 7 | 5 | ||
| 6 | #include "core/hle/service/ssl/ssl_backend.h" | ||
| 7 | |||
| 8 | namespace Service::SSL { | 8 | namespace Service::SSL { |
| 9 | 9 | ||
| 10 | ResultVal<std::unique_ptr<SSLConnectionBackend>> CreateSSLConnectionBackend() { | 10 | ResultVal<std::unique_ptr<SSLConnectionBackend>> CreateSSLConnectionBackend() { |
diff --git a/src/core/hle/service/ssl/ssl_backend_openssl.cpp b/src/core/hle/service/ssl/ssl_backend_openssl.cpp index f69674f77..6ca869dbf 100644 --- a/src/core/hle/service/ssl/ssl_backend_openssl.cpp +++ b/src/core/hle/service/ssl/ssl_backend_openssl.cpp | |||
| @@ -1,14 +1,6 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/ssl/ssl_backend.h" | ||
| 5 | #include "core/internal_network/network.h" | ||
| 6 | #include "core/internal_network/sockets.h" | ||
| 7 | |||
| 8 | #include "common/fs/file.h" | ||
| 9 | #include "common/hex_util.h" | ||
| 10 | #include "common/string_util.h" | ||
| 11 | |||
| 12 | #include <mutex> | 4 | #include <mutex> |
| 13 | 5 | ||
| 14 | #include <openssl/bio.h> | 6 | #include <openssl/bio.h> |
| @@ -16,6 +8,14 @@ | |||
| 16 | #include <openssl/ssl.h> | 8 | #include <openssl/ssl.h> |
| 17 | #include <openssl/x509.h> | 9 | #include <openssl/x509.h> |
| 18 | 10 | ||
| 11 | #include "common/fs/file.h" | ||
| 12 | #include "common/hex_util.h" | ||
| 13 | #include "common/string_util.h" | ||
| 14 | |||
| 15 | #include "core/hle/service/ssl/ssl_backend.h" | ||
| 16 | #include "core/internal_network/network.h" | ||
| 17 | #include "core/internal_network/sockets.h" | ||
| 18 | |||
| 19 | using namespace Common::FS; | 19 | using namespace Common::FS; |
| 20 | 20 | ||
| 21 | namespace Service::SSL { | 21 | namespace Service::SSL { |
diff --git a/src/core/hle/service/ssl/ssl_backend_schannel.cpp b/src/core/hle/service/ssl/ssl_backend_schannel.cpp index a1d6a186e..368735d8c 100644 --- a/src/core/hle/service/ssl/ssl_backend_schannel.cpp +++ b/src/core/hle/service/ssl/ssl_backend_schannel.cpp | |||
| @@ -1,16 +1,16 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/ssl/ssl_backend.h" | 4 | #include <mutex> |
| 5 | #include "core/internal_network/network.h" | ||
| 6 | #include "core/internal_network/sockets.h" | ||
| 7 | 5 | ||
| 8 | #include "common/error.h" | 6 | #include "common/error.h" |
| 9 | #include "common/fs/file.h" | 7 | #include "common/fs/file.h" |
| 10 | #include "common/hex_util.h" | 8 | #include "common/hex_util.h" |
| 11 | #include "common/string_util.h" | 9 | #include "common/string_util.h" |
| 12 | 10 | ||
| 13 | #include <mutex> | 11 | #include "core/hle/service/ssl/ssl_backend.h" |
| 12 | #include "core/internal_network/network.h" | ||
| 13 | #include "core/internal_network/sockets.h" | ||
| 14 | 14 | ||
| 15 | namespace { | 15 | namespace { |
| 16 | 16 | ||
diff --git a/src/core/hle/service/ssl/ssl_backend_securetransport.cpp b/src/core/hle/service/ssl/ssl_backend_securetransport.cpp index be40a5aeb..b3083cbad 100644 --- a/src/core/hle/service/ssl/ssl_backend_securetransport.cpp +++ b/src/core/hle/service/ssl/ssl_backend_securetransport.cpp | |||
| @@ -1,18 +1,21 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/ssl/ssl_backend.h" | ||
| 5 | #include "core/internal_network/network.h" | ||
| 6 | #include "core/internal_network/sockets.h" | ||
| 7 | |||
| 8 | #include <mutex> | 4 | #include <mutex> |
| 9 | 5 | ||
| 10 | #include <Security/SecureTransport.h> | ||
| 11 | |||
| 12 | // SecureTransport has been deprecated in its entirety in favor of | 6 | // SecureTransport has been deprecated in its entirety in favor of |
| 13 | // Network.framework, but that does not allow layering TLS on top of an | 7 | // Network.framework, but that does not allow layering TLS on top of an |
| 14 | // arbitrary socket. | 8 | // arbitrary socket. |
| 9 | #if defined(__GNUC__) || defined(__clang__) | ||
| 10 | #pragma GCC diagnostic push | ||
| 15 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | 11 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
| 12 | #include <Security/SecureTransport.h> | ||
| 13 | #pragma GCC diagnostic pop | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #include "core/hle/service/ssl/ssl_backend.h" | ||
| 17 | #include "core/internal_network/network.h" | ||
| 18 | #include "core/internal_network/sockets.h" | ||
| 16 | 19 | ||
| 17 | namespace { | 20 | namespace { |
| 18 | 21 | ||