X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c91409da0ac0d3fb4a225ab85e14370514e4094e..8d90b8b27bf086da6245030459ab3e5977313eb0:/be_all.c diff --git a/be_all.c b/be_all.c index fc0755ae..c58903cc 100644 --- a/be_all.c +++ b/be_all.c @@ -3,14 +3,29 @@ * including ssh. */ -#include #include #include "putty.h" -struct backend_list backends[] = { - {PROT_SSH, "ssh", &ssh_backend}, - {PROT_TELNET, "telnet", &telnet_backend}, - {PROT_RLOGIN, "rlogin", &rlogin_backend}, - {PROT_RAW, "raw", &raw_backend}, - {0, NULL} +/* + * This appname is not strictly in the right place, since Plink + * also uses this module. However, Plink doesn't currently use any + * of the dialog-box sorts of things that make use of appname, so + * it shouldn't do any harm here. I'm trying to avoid having to + * have tiny little source modules containing nothing but + * declarations of appname, for as long as I can... + */ +const char *const appname = "PuTTY"; + +#ifdef TELNET_DEFAULT +const int be_default_protocol = PROT_TELNET; +#else +const int be_default_protocol = PROT_SSH; +#endif + +Backend *backends[] = { + &ssh_backend, + &telnet_backend, + &rlogin_backend, + &raw_backend, + NULL };