Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ssh.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-04-17 19:01:08 +0300
committerSimon Tatham <anakin@pobox.com>2021-04-18 10:18:27 +0300
commitcc3e4992d5e5bfb580cefcbc9a3ed85f1cd95eee (patch)
treebc1b980d22f257d0df6aa8981e746a378656cc61 /ssh.h
parent3396c97da9d658570a4b80bd3221cefdc0b96dbf (diff)
Break up x11fwd.c.
This is a module that I'd noticed in the past was too monolithic. There's a big pile of stub functions in uxpgnt.c that only have to be there because the implementation of true X11 _forwarding_ (i.e. actually managing a channel within an SSH connection), which Pageant doesn't need, was in the same module as more general X11-related utility functions which Pageant does need. So I've broken up this awkward monolith. Now x11fwd.c contains only the code that really does all go together for dealing with SSH X forwarding: the management of an X forwarding channel (including the vtables to make it behave as Channel at the SSH end and a Plug at the end that connects to the local X server), and the management of authorisation for those channels, including maintaining a tree234 of possible auth values and verifying the one we received. Most of the functions removed from this file have moved into the utils subdir, and also into the utils library (i.e. further down the link order), because they were basically just string and data processing. One exception is x11_setup_display, which parses a display string and returns a struct telling you everything about how to connect to it. That talks to the networking code (it does name lookups and makes a SockAddr), so it has to live in the network library rather than utils, and therefore it's not in the utils subdirectory either. The other exception is x11_get_screen_number, which it turned out nothing called at all! Apparently the job it used to do is now done as part of x11_setup_display. So I've just removed it completely.
Diffstat (limited to 'ssh.h')
-rw-r--r--ssh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssh.h b/ssh.h
index 08c6797c..fbacbfa4 100644
--- a/ssh.h
+++ b/ssh.h
@@ -1191,6 +1191,7 @@ void x11_format_auth_for_authfile(
ptrlen authproto, ptrlen authdata);
int x11_identify_auth_proto(ptrlen protoname);
void *x11_dehexify(ptrlen hex, int *outlen);
+bool x11_parse_ip(const char *addr_string, unsigned long *ip);
Channel *agentf_new(SshChannel *c);