mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-17 23:20:56 +00:00
- (djm) Fix up LOG_AUTHPRIV for systems that have it
This commit is contained in:
parent
53f11c60b1
commit
30246a8f2b
@ -170,6 +170,7 @@
|
|||||||
list SSH2 ciphers
|
list SSH2 ciphers
|
||||||
- (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy()
|
- (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy()
|
||||||
- (bal) Fix up logging since it changed. removed log-*.c
|
- (bal) Fix up logging since it changed. removed log-*.c
|
||||||
|
- (djm) Fix up LOG_AUTHPRIV for systems that have it
|
||||||
|
|
||||||
20010304
|
20010304
|
||||||
- (bal) Remove make-ssh-known-hosts.1 since it's no longer valid.
|
- (bal) Remove make-ssh-known-hosts.1 since it's no longer valid.
|
||||||
@ -4362,4 +4363,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- 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
13
log.c
@ -57,6 +57,9 @@ static struct {
|
|||||||
{ "DAEMON", SYSLOG_FACILITY_DAEMON },
|
{ "DAEMON", SYSLOG_FACILITY_DAEMON },
|
||||||
{ "USER", SYSLOG_FACILITY_USER },
|
{ "USER", SYSLOG_FACILITY_USER },
|
||||||
{ "AUTH", SYSLOG_FACILITY_AUTH },
|
{ "AUTH", SYSLOG_FACILITY_AUTH },
|
||||||
|
#ifdef LOG_AUTHPRIV
|
||||||
|
{ "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV },
|
||||||
|
#endif
|
||||||
{ "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
|
{ "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
|
||||||
{ "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
|
{ "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
|
||||||
{ "LOCAL2", SYSLOG_FACILITY_LOCAL2 },
|
{ "LOCAL2", SYSLOG_FACILITY_LOCAL2 },
|
||||||
@ -284,12 +287,10 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
|
|||||||
case SYSLOG_FACILITY_AUTH:
|
case SYSLOG_FACILITY_AUTH:
|
||||||
log_facility = LOG_AUTH;
|
log_facility = LOG_AUTH;
|
||||||
break;
|
break;
|
||||||
#if 0 /* This is broken. =) - BAL */
|
#ifdef LOG_AUTHPRIV
|
||||||
#ifdef LOG_AUTHPRIV /** BAL: Verify */
|
case SYSLOG_FACILITY_AUTHPRIV:
|
||||||
case SYSLOG_FACILITY_AUTHPRIV
|
log_facility = LOG_AUTHPRIV;
|
||||||
log_facility = AUTHPRIV;
|
break;
|
||||||
break
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
case SYSLOG_FACILITY_LOCAL0:
|
case SYSLOG_FACILITY_LOCAL0:
|
||||||
log_facility = LOG_LOCAL0;
|
log_facility = LOG_LOCAL0;
|
||||||
|
2
log.h
2
log.h
@ -15,6 +15,8 @@
|
|||||||
#ifndef SSH_LOG_H
|
#ifndef SSH_LOG_H
|
||||||
#define SSH_LOG_H
|
#define SSH_LOG_H
|
||||||
|
|
||||||
|
#include <syslog.h> /* Needed for LOG_AUTHPRIV (if present) */
|
||||||
|
|
||||||
/* Supported syslog facilities and levels. */
|
/* Supported syslog facilities and levels. */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SYSLOG_FACILITY_DAEMON,
|
SYSLOG_FACILITY_DAEMON,
|
||||||
|
Loading…
Reference in New Issue
Block a user