X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=be_all.c;h=024a39e9c70229afee4f9466b61f557157120f52;hb=9fc67313fb7dda826c9c464a21e0900c724769b1;hp=69e44b760fb7dcaff941d830759f60aee9495a20;hpb=bbbda4110b960bd46f5d27c1d7107f4290b83f68;p=PuTTY.git diff --git a/be_all.c b/be_all.c index 69e44b76..024a39e9 100644 --- a/be_all.c +++ b/be_all.c @@ -3,13 +3,29 @@ * including ssh. */ -#include #include #include "putty.h" +/* + * 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 + 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} };