Implement Simon's suggestion of moving DEFAULT_PROTOCOL into a per-backend-
[u/mdw/putty] / be_all.c
1 /*
2 * Linking module for PuTTY proper: list the available backends
3 * including ssh.
4 */
5
6 #include <stdio.h>
7 #include "putty.h"
8
9 #ifdef TELNET_DEFAULT
10 const int be_default_protocol = PROT_TELNET;
11 #else
12 const int be_default_protocol = PROT_SSH;
13 #endif
14
15 struct backend_list backends[] = {
16 {PROT_SSH, "ssh", &ssh_backend},
17 {PROT_TELNET, "telnet", &telnet_backend},
18 {PROT_RLOGIN, "rlogin", &rlogin_backend},
19 {PROT_RAW, "raw", &raw_backend},
20 {0, NULL}
21 };