X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=be_all.c;h=c58903cc50d8f782a8b60be71cbc3606e246990e;hb=ea84449cb8a6404528652bb387e2abf8e62a477d;hp=ae58771e733b0450771e35e3208ab34f83859c6c;hpb=043e3162bdae5436e6fc6fbe5286eb64413e5c48;p=PuTTY_svn.git diff --git a/be_all.c b/be_all.c index ae58771e..c58903cc 100644 --- a/be_all.c +++ b/be_all.c @@ -3,20 +3,29 @@ * including ssh. */ -#include -#ifndef AUTO_WINSOCK -#ifdef WINSOCK_TWO -#include -#else -#include -#endif -#endif #include #include "putty.h" -struct backend_list backends[] = { - {PROT_SSH, "ssh", &ssh_backend}, - {PROT_TELNET, "telnet", &telnet_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 };