89ee5268 |
1 | /* |
2 | * Linking module for PuTTY proper: list the available backends |
3 | * including ssh. |
4 | */ |
5 | |
89ee5268 |
6 | #include <stdio.h> |
7 | #include "putty.h" |
8 | |
f6f450e2 |
9 | /* |
10 | * This appname is not strictly in the right place, since Plink |
11 | * also uses this module. However, Plink doesn't currently use any |
12 | * of the dialog-box sorts of things that make use of appname, so |
13 | * it shouldn't do any harm here. I'm trying to avoid having to |
14 | * have tiny little source modules containing nothing but |
15 | * declarations of appname, for as long as I can... |
16 | */ |
17 | const char *const appname = "PuTTY"; |
18 | |
ffa79828 |
19 | #ifdef TELNET_DEFAULT |
20 | const int be_default_protocol = PROT_TELNET; |
21 | #else |
22 | const int be_default_protocol = PROT_SSH; |
23 | #endif |
24 | |
89ee5268 |
25 | struct backend_list backends[] = { |
26 | {PROT_SSH, "ssh", &ssh_backend}, |
27 | {PROT_TELNET, "telnet", &telnet_backend}, |
c91409da |
28 | {PROT_RLOGIN, "rlogin", &rlogin_backend}, |
89ee5268 |
29 | {PROT_RAW, "raw", &raw_backend}, |
30 | {0, NULL} |
31 | }; |