mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Overhaul of client-side XDM-AUTHORIZATION-1:
* Make sk_getxdmdata() return an arbitrary string rather than two integers. This better matches the spec, even if the current version always returns six bytes * On Unix, for PF_UNIX sockets, return a counter rather than a constant along with the PID. This should allow multiple clients to connect within one second, and is what Xlib does. * On Unix, interpret AF_INET6 addresses like Xlib does, returning the embedded IPv4 address for v4-mapped addresses, and six bytes of zeroes otherwise. The latter is silly, but if I'm going to do anything more sane I need to check that X servers won't reject it. [originally from svn r5219]
This commit is contained in:
@ -117,11 +117,11 @@ GLOBAL void *logctx;
|
||||
/*
|
||||
* sk_getxdmdata() does not exist under Windows (not that I
|
||||
* couldn't write it if I wanted to, but I haven't bothered), so
|
||||
* it's a macro which always returns FALSE. With any luck this will
|
||||
* it's a macro which always returns NULL. With any luck this will
|
||||
* cause the compiler to notice it can optimise away the
|
||||
* implementation of XDM-AUTHORIZATION-1 in x11fwd.c :-)
|
||||
*/
|
||||
#define sk_getxdmdata(socket, ip, port) (0)
|
||||
#define sk_getxdmdata(socket, lenp) (NULL)
|
||||
|
||||
/*
|
||||
* File-selector filter strings used in the config box. On Windows,
|
||||
|
Reference in New Issue
Block a user