be_all.c 803 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Linking module for PuTTY proper: list the available backends
  3. * including ssh.
  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. const int be_default_protocol = PROT_SSH;
  17. const struct BackendVtable *const backends[] = {
  18. &ssh_backend,
  19. &telnet_backend,
  20. &rlogin_backend,
  21. &supdup_backend,
  22. &raw_backend,
  23. &sshconn_backend,
  24. NULL
  25. };
  26. const size_t n_ui_backends = 1;