be_all_s.c 828 B

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