mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -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:
@ -48,9 +48,9 @@ struct FontSpec {
|
||||
/*
|
||||
* sk_getxdmdata() does not exist under the Mac (SGT: I have no
|
||||
* idea whatsoever how to write it, and furthermore I'm unconvinced
|
||||
* it's necessary), so it's a macro which always returns FALSE.
|
||||
* it's necessary), so it's a macro which always returns NULL.
|
||||
*/
|
||||
#define sk_getxdmdata(socket, ip, port) (0)
|
||||
#define sk_getxdmdata(socket, lenp) (NULL)
|
||||
|
||||
/* To make it compile */
|
||||
|
||||
|
Reference in New Issue
Block a user