mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
e8ebb4c879
link-module const variable `be_default_protocol' which suggests a sensible default to the front end (which can ignore it). (DEFAULT_PORT is replaced by a lookup in the backend[] table.) Still not pretty, but it does mean that the recent fix for `ssh-default' doesn't break PuTTYtel. [originally from svn r2613]
22 lines
470 B
C
22 lines
470 B
C
/*
|
|
* Linking module for PuTTY proper: list the available backends
|
|
* including ssh.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include "putty.h"
|
|
|
|
#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}
|
|
};
|