1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00
putty-source/unix
Simon Tatham f4fbaa1bd9 Rework special-commands system to add an integer argument.
In order to list cross-certifiable host keys in the GUI specials menu,
the SSH backend has been inventing new values on the end of the
Telnet_Special enumeration, starting from the value TS_LOCALSTART.
This is inelegant, and also makes it awkward to break up special
handlers (e.g. to dispatch different specials to different SSH
layers), since if all you know about a special is that it's somewhere
in the TS_LOCALSTART+n space, you can't tell what _general kind_ of
thing it is. Also, if I ever need another open-ended set of specials
in future, I'll have to remember which TS_LOCALSTART+n codes are in
which set.

So here's a revamp that causes every special to take an extra integer
argument. For all previously numbered specials, this argument is
passed as zero and ignored, but there's a new main special code for
SSH host key cross-certification, in which the integer argument is an
index into the backend's list of available keys. TS_LOCALSTART is now
a thing of the past: if I need any other open-ended sets of specials
in future, I can add a new top-level code with a nicely separated
space of arguments.

While I'm at it, I've removed the legacy misnomer 'Telnet_Special'
from the code completely; the enum is now SessionSpecialCode, the
struct containing full details of a menu entry is SessionSpecial, and
the enum values now start SS_ rather than TS_.
2018-09-24 09:43:39 +01:00
..
configure Move the Unix configure script up to the top level. 2014-02-22 18:01:32 +00:00
gtkapp.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkask.c gtkask: rework the mechanism for keyboard grabs. 2018-05-13 23:05:46 +01:00
gtkcfg.c Expose the structure tag 'dlgparam'. 2018-09-19 23:08:07 +01:00
gtkcols.c Memory leak: add a columns_finalize() method. 2017-11-26 11:36:00 +00:00
gtkcols.h New Columns method, columns_force_same_height(). 2015-08-24 19:34:23 +01:00
gtkcomm.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkcompat.h Rework special-commands system to add an integer argument. 2018-09-24 09:43:39 +01:00
gtkdlg.c Expose the structure tag 'dlgparam'. 2018-09-19 23:08:07 +01:00
gtkfont.c New memory management macro 'snew_plus'. 2018-06-06 07:22:06 +01:00
gtkfont.h Handle GTK 3.22's deprecation of gdk_cairo_create(). 2017-02-27 19:58:39 +00:00
gtkmain.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
gtkmisc.c Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
gtkmisc.h Move more functions into the new gtkmisc.c. 2015-08-31 15:45:43 +01:00
gtkwin.c Rework special-commands system to add an integer argument. 2018-09-24 09:43:39 +01:00
osxlaunch.c osxlaunch: stop setting DYLD_LIBRARY_PATH. 2017-12-20 10:04:02 +00:00
pterm.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
pterm.plist Create OS X application bundles for PuTTY and pterm. 2016-03-23 22:22:48 +00:00
putty.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
putty.plist Create OS X application bundles for PuTTY and pterm. 2016-03-23 22:22:48 +00:00
unix.h Clean up a 'void *' in a unix.h typedef. 2018-09-19 23:08:07 +01:00
ux_x11.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxagentc.c Build outgoing SSH agent requests in a strbuf. 2018-05-25 14:36:16 +01:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c Remove FLAG_STDERR completely. 2018-09-21 16:46:03 +01:00
uxgen.c Unix PuTTYgen: switch to /dev/urandom by default. 2018-06-03 15:15:51 +01:00
uxgss.c Support GSS key exchange, for Kerberos 5 only. 2018-04-26 07:21:16 +01:00
uxmisc.c GPG key rollover. 2018-08-25 14:38:47 +01:00
uxnet.c Modernise the Socket/Plug vtable system. 2018-05-27 15:28:54 +01:00
uxnogtk.c Include the compile-time GTK version in the build info. 2017-02-15 19:32:42 +00: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 Put a layer of abstraction in front of struct ssh_channel. 2018-09-19 23:08:27 +01:00
uxplink.c Rework special-commands system to add an integer argument. 2018-09-24 09:43:39 +01:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Remove FLAG_STDERR completely. 2018-09-21 16:46:03 +01:00
uxpterm.c Turn Backend into a sensible classoid. 2018-09-19 22:10:58 +01:00
uxpty.c Rework special-commands system to add an integer argument. 2018-09-24 09:43:39 +01:00
uxputty.c Turn Backend into a sensible classoid. 2018-09-19 22:10:58 +01:00
uxsel.c unix: make select_result() return void. 2017-05-14 16:34:48 +01:00
uxser.c Rework special-commands system to add an integer argument. 2018-09-24 09:43:39 +01:00
uxsftp.c Introduce a typedef for frontend handles. 2018-09-19 22:10:58 +01:00
uxshare.c Replace all uses of SHA*_Bytes / MD5Update. 2018-05-25 14:36:16 +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 Invent structure tags for the storage.h abstractions. 2018-09-19 23:08:07 +01:00
uxucs.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
x11misc.c Ignore X11 BadMatch errors during cut buffer setup. 2016-03-20 18:30:03 +00:00
x11misc.h Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +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