diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-22 21:02:40 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-22 21:02:40 +0000 |
commit | e635c41f03fe35686ec48598b5ff248c2485d8bb (patch) | |
tree | 8521120e30f644f5a56001e3b3d4bc47b97bdb40 /usr.bin/ssh/ssh.h | |
parent | 2632baae61bff755f455a90159bc81cffae148f0 (diff) |
syslog changes:
* Unified Logmessage for all auth-types, for success and for failed
* Standard connections get only ONE line in the LOG when level==LOG:
Auth-attempts are logged only, if authentication is:
a) successfull or
b) with passwd or
c) we had more than AUTH_FAIL_LOG failues
* many log() became verbose()
* old behaviour with level=VERBOSE
Diffstat (limited to 'usr.bin/ssh/ssh.h')
-rw-r--r-- | usr.bin/ssh/ssh.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/ssh/ssh.h b/usr.bin/ssh/ssh.h index b1de3d26564..85923137bbc 100644 --- a/usr.bin/ssh/ssh.h +++ b/usr.bin/ssh/ssh.h @@ -13,7 +13,7 @@ Generic header file for ssh. */ -/* RCSID("$Id: ssh.h,v 1.22 1999/11/19 16:04:17 markus Exp $"); */ +/* RCSID("$Id: ssh.h,v 1.23 1999/11/22 21:02:38 markus Exp $"); */ #ifndef SSH_H #define SSH_H @@ -365,7 +365,7 @@ typedef enum SYSLOG_LEVEL_FATAL, SYSLOG_LEVEL_ERROR, SYSLOG_LEVEL_INFO, - SYSLOG_LEVEL_CHAT, + SYSLOG_LEVEL_VERBOSE, SYSLOG_LEVEL_DEBUG } LogLevel; @@ -380,12 +380,12 @@ SyslogFacility log_facility_number(char *name); LogLevel log_level_number(char *name); /* Output a message to syslog or stderr */ -void fatal(const char *fmt, ...); -void error(const char *fmt, ...); -void log(const char *fmt, ...); -void chat(const char *fmt, ...); -void debug(const char *fmt, ...); - +void fatal(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void error(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void log(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void verbose(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void debug(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); + /* same as fatal() but w/o logging */ void fatal_cleanup(void); |