1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00
putty-source/unix
Simon Tatham c8f83979a3 Log identifying information for the other end of connections.
When anyone connects to a PuTTY tool's listening socket - whether it's
a user of a local->remote port forwarding, a connection-sharing
downstream or a client of Pageant - we'd like to log as much
information as we can find out about where the connection came from.

To that end, I've implemented a function sk_peer_info() in the socket
abstraction, which returns a freeform text string as best it can (or
NULL, if it can't get anything at all) describing the thing at the
other end of the connection. For TCP connections, this is done using
getpeername() to get an IP address and port in the obvious way; for
Unix-domain sockets, we attempt SO_PEERCRED (conditionalised on some
moderately hairy autoconfery) to get the pid and owner of the peer. I
haven't implemented anything for Windows named pipes, but I will if I
hear of anything useful.
2015-05-18 14:03:10 +01:00
..
configure Move the Unix configure script up to the top level. 2014-02-22 18:01:32 +00:00
gtkask.c askpass: don't treat releases of Ret or Esc as presses. 2015-05-17 16:40:36 +01:00
gtkcfg.c Fix two small memory leaks in config mechanism. 2015-05-08 18:57:18 +01:00
gtkcols.c Reinstate all the GTK1-specific code under ifdefs, and verify that 2008-04-04 10:56:26 +00:00
gtkcols.h Stop including <gtk/gtkcontainer.h> directly, since a user points out 2012-07-01 16:55:36 +00:00
gtkdlg.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
gtkfont.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
gtkfont.h Support font fallback even when an X11 server-side font is selected, 2011-09-16 19:18:54 +00:00
gtkwin.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
unix.h Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
ux_x11.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxagentc.c Support synchronous agent requests on Unix. 2015-05-11 17:52:19 +01:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxgen.c Fix another giant batch of resource leaks. (Mostly memory, but there's 2013-07-14 10:46:07 +00:00
uxgss.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxmisc.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxnet.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxnoise.c Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse. 2009-09-16 22:28:20 +00:00
uxpeer.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxpgnt.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxplink.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxpterm.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxpty.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxputty.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxsel.c Changed my mind about r7164. Instead of checking for zero flags 2007-01-26 20:00:32 +00:00
uxser.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxsftp.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxshare.c Move make_dir_and_check_ours() out into uxmisc.c. 2015-05-05 20:16:22 +01:00
uxsignal.c Rename some of the more stupidly named files in the Unix back end. 2004-12-31 13:02:46 +00:00
uxstore.c Fix error checking in uxstore.c: add a missing check, and fix a 2013-07-21 07:40:30 +00:00
uxucs.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
xkeysym.c Support for non-ISO-8859-1 X keysyms. So in particular, pterm in a 2003-04-27 11:10:48 +00:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00