summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-03-05 21:23:31 +1100
committerDamien Miller <djm@mindrot.org>2001-03-05 21:23:31 +1100
commit30246a8f2bc6f492f0d78b65da07e78d13869591 (patch)
treeb1eb405026a34b9f2ef06baab301bd265e1e1b8b
parent53f11c60b1802424f5d8817d3689750ff5c91073 (diff)
- (djm) Fix up LOG_AUTHPRIV for systems that have it
-rw-r--r--ChangeLog3
-rw-r--r--log.c13
-rw-r--r--log.h2
3 files changed, 11 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 5909f3be6..9c20486d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -170,6 +170,7 @@
170 list SSH2 ciphers 170 list SSH2 ciphers
171 - (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy() 171 - (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy()
172 - (bal) Fix up logging since it changed. removed log-*.c 172 - (bal) Fix up logging since it changed. removed log-*.c
173 - (djm) Fix up LOG_AUTHPRIV for systems that have it
173 174
17420010304 17520010304
175 - (bal) Remove make-ssh-known-hosts.1 since it's no longer valid. 176 - (bal) Remove make-ssh-known-hosts.1 since it's no longer valid.
@@ -4362,4 +4363,4 @@
4362 - Wrote replacements for strlcpy and mkdtemp 4363 - Wrote replacements for strlcpy and mkdtemp
4363 - Released 1.0pre1 4364 - Released 1.0pre1
4364 4365
4365$Id: ChangeLog,v 1.905 2001/03/05 08:16:54 mouring Exp $ 4366$Id: ChangeLog,v 1.906 2001/03/05 10:23:31 djm Exp $
diff --git a/log.c b/log.c
index 11633fe3f..6131f4cdd 100644
--- a/log.c
+++ b/log.c
@@ -57,6 +57,9 @@ static struct {
57 { "DAEMON", SYSLOG_FACILITY_DAEMON }, 57 { "DAEMON", SYSLOG_FACILITY_DAEMON },
58 { "USER", SYSLOG_FACILITY_USER }, 58 { "USER", SYSLOG_FACILITY_USER },
59 { "AUTH", SYSLOG_FACILITY_AUTH }, 59 { "AUTH", SYSLOG_FACILITY_AUTH },
60#ifdef LOG_AUTHPRIV
61 { "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV },
62#endif
60 { "LOCAL0", SYSLOG_FACILITY_LOCAL0 }, 63 { "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
61 { "LOCAL1", SYSLOG_FACILITY_LOCAL1 }, 64 { "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
62 { "LOCAL2", SYSLOG_FACILITY_LOCAL2 }, 65 { "LOCAL2", SYSLOG_FACILITY_LOCAL2 },
@@ -284,12 +287,10 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
284 case SYSLOG_FACILITY_AUTH: 287 case SYSLOG_FACILITY_AUTH:
285 log_facility = LOG_AUTH; 288 log_facility = LOG_AUTH;
286 break; 289 break;
287#if 0 /* This is broken. =) - BAL */ 290#ifdef LOG_AUTHPRIV
288#ifdef LOG_AUTHPRIV /** BAL: Verify */ 291 case SYSLOG_FACILITY_AUTHPRIV:
289 case SYSLOG_FACILITY_AUTHPRIV 292 log_facility = LOG_AUTHPRIV;
290 log_facility = AUTHPRIV; 293 break;
291 break
292#endif
293#endif 294#endif
294 case SYSLOG_FACILITY_LOCAL0: 295 case SYSLOG_FACILITY_LOCAL0:
295 log_facility = LOG_LOCAL0; 296 log_facility = LOG_LOCAL0;
diff --git a/log.h b/log.h
index d13f73771..6da5bcc0b 100644
--- a/log.h
+++ b/log.h
@@ -15,6 +15,8 @@
15#ifndef SSH_LOG_H 15#ifndef SSH_LOG_H
16#define SSH_LOG_H 16#define SSH_LOG_H
17 17
18#include <syslog.h> /* Needed for LOG_AUTHPRIV (if present) */
19
18/* Supported syslog facilities and levels. */ 20/* Supported syslog facilities and levels. */
19typedef enum { 21typedef enum {
20 SYSLOG_FACILITY_DAEMON, 22 SYSLOG_FACILITY_DAEMON,