diff options
author | Damien Miller <djm@mindrot.org> | 2001-03-05 21:23:31 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-03-05 21:23:31 +1100 |
commit | 30246a8f2bc6f492f0d78b65da07e78d13869591 (patch) | |
tree | b1eb405026a34b9f2ef06baab301bd265e1e1b8b | |
parent | 53f11c60b1802424f5d8817d3689750ff5c91073 (diff) |
- (djm) Fix up LOG_AUTHPRIV for systems that have it
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | log.c | 13 | ||||
-rw-r--r-- | log.h | 2 |
3 files changed, 11 insertions, 7 deletions
@@ -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 | ||
174 | 20010304 | 175 | 20010304 |
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 $ |
@@ -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; |
@@ -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. */ |
19 | typedef enum { | 21 | typedef enum { |
20 | SYSLOG_FACILITY_DAEMON, | 22 | SYSLOG_FACILITY_DAEMON, |