- (djm) Fix up LOG_AUTHPRIV for systems that have it

This commit is contained in:
Damien Miller 2001-03-05 21:23:31 +11:00
parent 53f11c60b1
commit 30246a8f2b
3 changed files with 11 additions and 7 deletions

View File

@ -170,6 +170,7 @@
list SSH2 ciphers
- (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy()
- (bal) Fix up logging since it changed. removed log-*.c
- (djm) Fix up LOG_AUTHPRIV for systems that have it
20010304
- (bal) Remove make-ssh-known-hosts.1 since it's no longer valid.
@ -4362,4 +4363,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.905 2001/03/05 08:16:54 mouring Exp $
$Id: ChangeLog,v 1.906 2001/03/05 10:23:31 djm Exp $

13
log.c
View File

@ -57,6 +57,9 @@ static struct {
{ "DAEMON", SYSLOG_FACILITY_DAEMON },
{ "USER", SYSLOG_FACILITY_USER },
{ "AUTH", SYSLOG_FACILITY_AUTH },
#ifdef LOG_AUTHPRIV
{ "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV },
#endif
{ "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
{ "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
{ "LOCAL2", SYSLOG_FACILITY_LOCAL2 },
@ -284,12 +287,10 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
case SYSLOG_FACILITY_AUTH:
log_facility = LOG_AUTH;
break;
#if 0 /* This is broken. =) - BAL */
#ifdef LOG_AUTHPRIV /** BAL: Verify */
case SYSLOG_FACILITY_AUTHPRIV
log_facility = AUTHPRIV;
break
#endif
#ifdef LOG_AUTHPRIV
case SYSLOG_FACILITY_AUTHPRIV:
log_facility = LOG_AUTHPRIV;
break;
#endif
case SYSLOG_FACILITY_LOCAL0:
log_facility = LOG_LOCAL0;

2
log.h
View File

@ -15,6 +15,8 @@
#ifndef SSH_LOG_H
#define SSH_LOG_H
#include <syslog.h> /* Needed for LOG_AUTHPRIV (if present) */
/* Supported syslog facilities and levels. */
typedef enum {
SYSLOG_FACILITY_DAEMON,