summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/log.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>1999-11-22 21:02:38 +0000
committermarkus <markus@openbsd.org>1999-11-22 21:02:38 +0000
commitae4f3c9fde77827895bdde83a1c53d6990fab734 (patch)
treeaddd454a6968b308756be2ec3b4575e4a34cae5c /usr.bin/ssh/log.c
parent-V, for fallback to openssh in SSH2 compatibility mode (diff)
downloadwireguard-openbsd-ae4f3c9fde77827895bdde83a1c53d6990fab734.tar.xz
wireguard-openbsd-ae4f3c9fde77827895bdde83a1c53d6990fab734.zip
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/log.c')
-rw-r--r--usr.bin/ssh/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/log.c b/usr.bin/ssh/log.c
index 1ce534ea57d..af5395da8f8 100644
--- a/usr.bin/ssh/log.c
+++ b/usr.bin/ssh/log.c
@@ -5,7 +5,7 @@ Shared versions of debug(), log(), etc.
*/
#include "includes.h"
-RCSID("$OpenBSD: log.c,v 1.2 1999/11/19 16:04:17 markus Exp $");
+RCSID("$OpenBSD: log.c,v 1.3 1999/11/22 21:02:38 markus Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -47,11 +47,11 @@ log(const char *fmt, ...)
/* More detailed messages (information that does not need to go to the log). */
void
-chat(const char *fmt, ...)
+verbose(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
- do_log(SYSLOG_LEVEL_CHAT, fmt, args);
+ do_log(SYSLOG_LEVEL_VERBOSE, fmt, args);
va_end(args);
}
@@ -167,7 +167,7 @@ static struct
{ "FATAL", SYSLOG_LEVEL_FATAL },
{ "ERROR", SYSLOG_LEVEL_ERROR },
{ "INFO", SYSLOG_LEVEL_INFO },
- { "CHAT", SYSLOG_LEVEL_CHAT },
+ { "VERBOSE", SYSLOG_LEVEL_VERBOSE },
{ "DEBUG", SYSLOG_LEVEL_DEBUG },
{ NULL, 0 }
};