diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-10-16 15:24:45 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-10-16 15:42:29 +0200 |
commit | 752250caabda3dd24635503c4cd689b32a650794 (patch) | |
tree | 883ab6c533e52cd5468e57c52706744777be5fb1 /monitor_wrap.h | |
parent | upstream: use do_log2 instead of function pointers to different log (diff) | |
download | openssh-752250caabda3dd24635503c4cd689b32a650794.tar.xz openssh-752250caabda3dd24635503c4cd689b32a650794.zip |
upstream: revised log infrastructure for OpenSSH
log functions receive function, filename and line number of caller.
We can use this to selectively enable logging via pattern-lists.
ok markus@
OpenBSD-Commit-ID: 51a472610cbe37834ce6ce4a3f0e0b1ccc95a349
Diffstat (limited to 'monitor_wrap.h')
-rw-r--r-- | monitor_wrap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor_wrap.h b/monitor_wrap.h index 0db38c206..8507f1c11 100644 --- a/monitor_wrap.h +++ b/monitor_wrap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor_wrap.h,v 1.45 2020/08/27 01:06:18 djm Exp $ */ +/* $OpenBSD: monitor_wrap.h,v 1.46 2020/10/16 13:24:45 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> @@ -40,7 +40,8 @@ struct sshkey; struct sshauthopt; struct sshkey_sig_details; -void mm_log_handler(LogLevel, const char *, void *); +void mm_log_handler(const char *, const char *, int, LogLevel, + const char *, void *); int mm_is_monitor(void); #ifdef WITH_OPENSSL DH *mm_choose_dh(int, int, int); |