void (*send) (char *buf, int len);
void (*size) (void);
void (*special) (Telnet_Special code);
+ SOCKET (*socket) (void);
+ int (*sendok) (void);
} Backend;
GLOBAL Backend *back;
int close_on_exit;
int warn_on_close;
/* SSH options */
+ char remote_cmd[512];
int nopty;
enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
char keyfile[FILENAME_MAX];
+ int sshprot; /* use v1 or v2 when both available */
int try_tis_auth;
/* Telnet options */
char termtype[32];
#define DEFAULT_PORT 22
#endif
+/*
+ * Some global flags denoting the type of application.
+ */
+#define FLAG_VERBOSE 0x0001
+#define FLAG_WINDOWED 0x0002
+#define FLAG_CONNECTION 0x0004
+GLOBAL int flags;
+
GLOBAL Config cfg;
GLOBAL int default_protocol;
GLOBAL int default_port;