projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a fourth application: plink, a command line connection utility
[u/mdw/putty]
/
putty.h
diff --git
a/putty.h
b/putty.h
index
3b2257a
..
fbd5e64
100644
(file)
--- a/
putty.h
+++ b/
putty.h
@@
-109,6
+109,7
@@
typedef struct {
void (*send) (char *buf, int len);
void (*size) (void);
void (*special) (Telnet_Special code);
void (*send) (char *buf, int len);
void (*size) (void);
void (*special) (Telnet_Special code);
+ SOCKET (*socket) (void);
} Backend;
GLOBAL Backend *back;
} Backend;
GLOBAL Backend *back;
@@
-135,6
+136,7
@@
typedef struct {
/* SSH options */
int nopty;
enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
/* SSH options */
int nopty;
enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
+ char keyfile[FILENAME_MAX];
int try_tis_auth;
/* Telnet options */
char termtype[32];
int try_tis_auth;
/* Telnet options */
char termtype[32];
@@
-195,6
+197,14
@@
typedef struct {
#define DEFAULT_PORT 22
#endif
#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;
GLOBAL Config cfg;
GLOBAL int default_protocol;
GLOBAL int default_port;