1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Move proxy-related source files into a subdirectory.

There are quite a few of them already, and I'm about to make another
one, so let's start with a bit of tidying up.

The CMake build organisation is unchanged: I haven't put the proxy
object files into a separate library, just moved the locations of the
source files. (Organising proxying as a library would be tricky
anyway, because of the various overrides for tools that want to avoid
cryptography.)
This commit is contained in:
Simon Tatham 2021-10-30 11:02:28 +01:00
parent 76dc28552c
commit 971c70e603
17 changed files with 18 additions and 18 deletions

View File

@ -29,11 +29,11 @@ add_library(settings STATIC
cmdline.c settings.c)
add_library(crypto STATIC
cproxy.c sshproxy.c)
proxy/cproxy.c proxy/sshproxy.c)
add_subdirectory(crypto)
add_library(network STATIC
be_misc.c nullplug.c errsock.c proxy.c logging.c x11disp.c)
be_misc.c nullplug.c errsock.c proxy/proxy.c logging.c x11disp.c)
add_library(keygen STATIC
import.c)
@ -119,8 +119,8 @@ add_executable(psocks
${platform}/psocks.c
psocks.c
norand.c
nocproxy.c
nosshproxy.c
proxy/nocproxy.c
proxy/nosshproxy.c
ssh/portfwd.c)
target_link_libraries(psocks
eventloop console network utils

View File

@ -138,7 +138,7 @@ if(GTK_FOUND)
x11.c
noise.c
${CMAKE_SOURCE_DIR}/ssh/x11fwd.c
${CMAKE_SOURCE_DIR}/nosshproxy.c)
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c)
target_link_libraries(pageant
eventloop console agent settings network crypto utils
${GTK_LIBRARIES})
@ -149,7 +149,7 @@ if(GTK_FOUND)
main-gtk-simple.c
${CMAKE_SOURCE_DIR}/be_none.c
${CMAKE_SOURCE_DIR}/nogss.c
${CMAKE_SOURCE_DIR}/nosshproxy.c
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c
pty.c)
target_link_libraries(pterm
guiterminal eventloop settings charset utils
@ -162,7 +162,7 @@ if(GTK_FOUND)
${CMAKE_SOURCE_DIR}/nocmdline.c
${CMAKE_SOURCE_DIR}/be_none.c
${CMAKE_SOURCE_DIR}/nogss.c
${CMAKE_SOURCE_DIR}/nosshproxy.c
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c
pty.c)
target_link_libraries(ptermapp
guiterminal eventloop settings charset utils
@ -196,8 +196,8 @@ if(GTK_FOUND)
${CMAKE_SOURCE_DIR}/be_nos_s.c
${CMAKE_SOURCE_DIR}/nogss.c
${CMAKE_SOURCE_DIR}/norand.c
${CMAKE_SOURCE_DIR}/nocproxy.c
${CMAKE_SOURCE_DIR}/nosshproxy.c)
${CMAKE_SOURCE_DIR}/proxy/nocproxy.c
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c)
target_link_libraries(puttytel
guiterminal eventloop otherbackends settings network charset utils
${GTK_LIBRARIES} ${X11_LIBRARIES})

View File

@ -12,7 +12,7 @@
#include "tree234.h"
#include "putty.h"
#include "network.h"
#include "proxy.h"
#include "proxy/proxy.h"
Socket *platform_new_connection(SockAddr *addr, const char *hostname,
int port, bool privport,

View File

@ -16,7 +16,7 @@
#include "tree234.h"
#include "putty.h"
#include "network.h"
#include "proxy.h"
#include "proxy/proxy.h"
#include "ssh.h"
#define CONNSHARE_SOCKETDIR_PREFIX "/tmp/putty-connshare"

View File

@ -111,8 +111,8 @@ add_executable(puttytel
${CMAKE_SOURCE_DIR}/be_nos_s.c
${CMAKE_SOURCE_DIR}/nogss.c
${CMAKE_SOURCE_DIR}/norand.c
${CMAKE_SOURCE_DIR}/nocproxy.c
${CMAKE_SOURCE_DIR}/nosshproxy.c
${CMAKE_SOURCE_DIR}/proxy/nocproxy.c
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c
puttytel.rc)
add_dependencies(puttytel generated_licence_h)
target_link_libraries(puttytel
@ -152,7 +152,7 @@ if(HAVE_CONPTY)
be_conpty.c
${CMAKE_SOURCE_DIR}/nogss.c
${CMAKE_SOURCE_DIR}/norand.c
${CMAKE_SOURCE_DIR}/nosshproxy.c
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c
pterm.rc)
add_dependencies(pterm generated_licence_h)
target_link_libraries(pterm

View File

@ -10,7 +10,7 @@
#include "tree234.h"
#include "putty.h"
#include "network.h"
#include "proxy.h"
#include "proxy/proxy.h"
Socket *platform_new_connection(SockAddr *addr, const char *hostname,
int port, bool privport,

View File

@ -8,7 +8,7 @@
#include "tree234.h"
#include "putty.h"
#include "network.h"
#include "proxy.h"
#include "proxy/proxy.h"
#include "ssh.h"
#include "security-api.h"

View File

@ -8,7 +8,7 @@
#include "tree234.h"
#include "putty.h"
#include "network.h"
#include "proxy.h"
#include "proxy/proxy.h"
#include "ssh.h"
#include "security-api.h"

View File

@ -8,7 +8,7 @@
#include "tree234.h"
#include "putty.h"
#include "network.h"
#include "proxy.h"
#include "proxy/proxy.h"
#include "ssh.h"
#include "cryptoapi.h"