"Fossies" - the Fresh Open Source Software Archive

Member "putty-0.73/be_all.c" (22 Sep 2019, 807 Bytes) of package /linux/misc/putty-0.73.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "be_all.c" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 0.70_vs_0.71.

    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 /*
   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 
   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 
   25 const struct BackendVtable *const backends[] = {
   26     &ssh_backend,
   27     &telnet_backend,
   28     &rlogin_backend,
   29     &raw_backend,
   30     NULL
   31 };