1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

`ssh-log-pw-blank': known password fields are now omitted from SSH packet logs

by default (although they can be included). There's also an option to remove
session data, which is good both for privacy and for reducing the size of
logfiles.

[originally from svn r4593]
This commit is contained in:
Jacob Nevins
2004-10-02 00:33:27 +00:00
parent fb92f118bd
commit e375ba107d
7 changed files with 311 additions and 39 deletions

11
putty.h
View File

@ -425,6 +425,8 @@ struct config_tag {
Filename logfilename;
int logtype;
int logxfovr;
int logomitpass;
int logomitdata;
int hide_mouseptr;
int sunken_edge;
int window_border;
@ -658,8 +660,15 @@ void logtraffic(void *logctx, unsigned char c, int logmode);
void logflush(void *logctx);
void log_eventlog(void *logctx, const char *string);
enum { PKT_INCOMING, PKT_OUTGOING };
enum { PKTLOG_EMIT, PKTLOG_BLANK, PKTLOG_OMIT };
struct logblank_t {
int offset;
int len;
int type;
};
void log_packet(void *logctx, int direction, int type,
char *texttype, void *data, int len);
char *texttype, void *data, int len,
int n_blanks, const struct logblank_t *blanks);
/*
* Exports from testback.c