2000-03-15 18:08:48 +03:00
|
|
|
/*
|
|
|
|
* Linking module for PuTTY proper: list the available backends
|
|
|
|
* including ssh.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "putty.h"
|
|
|
|
|
2003-04-06 18:11:33 +04:00
|
|
|
/*
|
|
|
|
* 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";
|
|
|
|
|
2003-01-15 23:47:50 +03:00
|
|
|
#ifdef TELNET_DEFAULT
|
|
|
|
const int be_default_protocol = PROT_TELNET;
|
|
|
|
#else
|
|
|
|
const int be_default_protocol = PROT_SSH;
|
|
|
|
#endif
|
|
|
|
|
2000-03-15 18:08:48 +03:00
|
|
|
struct backend_list backends[] = {
|
|
|
|
{PROT_SSH, "ssh", &ssh_backend},
|
|
|
|
{PROT_TELNET, "telnet", &telnet_backend},
|
2001-01-19 13:10:37 +03:00
|
|
|
{PROT_RLOGIN, "rlogin", &rlogin_backend},
|
2000-03-15 18:08:48 +03:00
|
|
|
{PROT_RAW, "raw", &raw_backend},
|
|
|
|
{0, NULL}
|
|
|
|
};
|