projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a config option to emulate the HMAC bug in commercial SSH v2.3.x
[u/mdw/putty]
/
putty.h
diff --git
a/putty.h
b/putty.h
index
016c56c
..
af5b755
100644
(file)
--- a/
putty.h
+++ b/
putty.h
@@
-92,7
+92,7
@@
GLOBAL char *logfile;
typedef enum {
TS_AYT, TS_BRK, TS_SYNCH, TS_EC, TS_EL, TS_GA, TS_NOP, TS_ABORT,
typedef enum {
TS_AYT, TS_BRK, TS_SYNCH, TS_EC, TS_EL, TS_GA, TS_NOP, TS_ABORT,
- TS_AO, TS_IP, TS_SUSP, TS_EOR, TS_EOF, TS_LECHO, TS_RECHO
+ TS_AO, TS_IP, TS_SUSP, TS_EOR, TS_EOF, TS_LECHO, TS_RECHO
, TS_PING
} Telnet_Special;
typedef enum {
} Telnet_Special;
typedef enum {
@@
-115,6
+115,7
@@
typedef struct {
void (*special) (Telnet_Special code);
SOCKET (*socket) (void);
int (*sendok) (void);
void (*special) (Telnet_Special code);
SOCKET (*socket) (void);
int (*sendok) (void);
+ int default_port;
} Backend;
GLOBAL Backend *back;
} Backend;
GLOBAL Backend *back;
@@
-138,6
+139,7
@@
typedef struct {
enum { PROT_RAW, PROT_TELNET, PROT_SSH } protocol;
int close_on_exit;
int warn_on_close;
enum { PROT_RAW, PROT_TELNET, PROT_SSH } protocol;
int close_on_exit;
int warn_on_close;
+ int ping_interval;
/* SSH options */
char remote_cmd[512];
int nopty;
/* SSH options */
char remote_cmd[512];
int nopty;
@@
-145,6
+147,7
@@
typedef struct {
enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
char keyfile[FILENAME_MAX];
int sshprot; /* use v1 or v2 when both available */
enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
char keyfile[FILENAME_MAX];
int sshprot; /* use v1 or v2 when both available */
+ int buggymac; /* MAC bug commmercial <=v2.3.x SSH2 */
int try_tis_auth;
/* Telnet options */
char termtype[32];
int try_tis_auth;
/* Telnet options */
char termtype[32];
@@
-163,6
+166,7
@@
typedef struct {
int alt_space; /* is it special? */
int ldisc_term;
int scroll_on_key;
int alt_space; /* is it special? */
int ldisc_term;
int scroll_on_key;
+ char wintitle[256]; /* initial window title */
/* Terminal options */
int savelines;
int dec_om;
/* Terminal options */
int savelines;
int dec_om;
@@
-191,6
+195,7
@@
typedef struct {
VT_Mode vtmode;
int xlat_enablekoiwin;
int xlat_88592w1250;
VT_Mode vtmode;
int xlat_enablekoiwin;
int xlat_88592w1250;
+ int xlat_88592cp852;
int xlat_capslockcyr;
} Config;
int xlat_capslockcyr;
} Config;
@@
-242,7
+247,7
@@
Context get_ctx(void);
void free_ctx (Context);
void palette_set (int, int, int, int);
void palette_reset (void);
void free_ctx (Context);
void palette_set (int, int, int, int);
void palette_reset (void);
-void write_clip (void *, int);
+void write_clip (void *, int
, int
);
void get_clip (void **, int *);
void optimised_move (int, int, int);
void connection_fatal(char *, ...);
void get_clip (void **, int *);
void optimised_move (int, int, int);
void connection_fatal(char *, ...);
@@
-266,18
+271,25
@@
void random_destroy_seed(void);
*/
int do_config (void);
int do_reconfig (HWND);
*/
int do_config (void);
int do_reconfig (HWND);
-void do_defaults (char *);
+void do_defaults (char *
, Config *
);
void logevent (char *);
void showeventlog (HWND);
void showabout (HWND);
void logevent (char *);
void showeventlog (HWND);
void showabout (HWND);
-void verify_ssh_host_key(char *host,
char *keystr);
-
void get_sesslist(int allocate
);
+void verify_ssh_host_key(char *host,
int port, char *keytype,
+
char *keystr, char *fingerprint
);
void registry_cleanup(void);
GLOBAL int nsessions;
GLOBAL char **sessions;
/*
void registry_cleanup(void);
GLOBAL int nsessions;
GLOBAL char **sessions;
/*
+ * Exports from settings.c.
+ */
+void save_settings (char *section, int do_host, Config *cfg);
+void load_settings (char *section, int do_host, Config *cfg);
+void get_sesslist(int allocate);
+
+/*
* Exports from terminal.c.
*/
* Exports from terminal.c.
*/