log.h (149753) | log.h (162856) |
---|---|
1/* $OpenBSD: log.h,v 1.11 2004/06/21 22:02:58 djm Exp $ */ 2/* $FreeBSD: head/crypto/openssh/log.h 137019 2004-10-28 16:11:31Z des $ */ | 1/* $OpenBSD: log.h,v 1.15 2006/08/18 09:13:25 deraadt Exp $ */ 2/* $FreeBSD: head/crypto/openssh/log.h 162856 2006-09-30 13:38:06Z des $ */ |
3 4/* 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7 * All rights reserved 8 * 9 * As far as I am concerned, the code I have written for this software 10 * can be used freely for any purpose. Any derived versions of this 11 * software must be clearly marked as such, and if the derived work is 12 * incompatible with the protocol description in the RFC file, it must be 13 * called by a name other than "ssh" or "Secure Shell". 14 */ 15 16#ifndef SSH_LOG_H 17#define SSH_LOG_H 18 | 3 4/* 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7 * All rights reserved 8 * 9 * As far as I am concerned, the code I have written for this software 10 * can be used freely for any purpose. Any derived versions of this 11 * software must be clearly marked as such, and if the derived work is 12 * incompatible with the protocol description in the RFC file, it must be 13 * called by a name other than "ssh" or "Secure Shell". 14 */ 15 16#ifndef SSH_LOG_H 17#define SSH_LOG_H 18 |
19#include <syslog.h> /* Needed for LOG_AUTHPRIV (if present) */ 20 | |
21/* Supported syslog facilities and levels. */ 22typedef enum { 23 SYSLOG_FACILITY_DAEMON, 24 SYSLOG_FACILITY_USER, 25 SYSLOG_FACILITY_AUTH, 26#ifdef LOG_AUTHPRIV 27 SYSLOG_FACILITY_AUTHPRIV, 28#endif --- 30 unchanged lines hidden (view full) --- 59#define logit ssh_logit 60#define verbose ssh_verbose 61#define debug ssh_debug 62#define debug2 ssh_debug2 63#define debug3 ssh_debug3 64 65void fatal(const char *, ...) __dead __attribute__((format(printf, 1, 2))); 66void error(const char *, ...) __attribute__((format(printf, 1, 2))); | 19/* Supported syslog facilities and levels. */ 20typedef enum { 21 SYSLOG_FACILITY_DAEMON, 22 SYSLOG_FACILITY_USER, 23 SYSLOG_FACILITY_AUTH, 24#ifdef LOG_AUTHPRIV 25 SYSLOG_FACILITY_AUTHPRIV, 26#endif --- 30 unchanged lines hidden (view full) --- 57#define logit ssh_logit 58#define verbose ssh_verbose 59#define debug ssh_debug 60#define debug2 ssh_debug2 61#define debug3 ssh_debug3 62 63void fatal(const char *, ...) __dead __attribute__((format(printf, 1, 2))); 64void error(const char *, ...) __attribute__((format(printf, 1, 2))); |
65void sigdie(const char *, ...) __attribute__((format(printf, 1, 2))); |
|
67void logit(const char *, ...) __attribute__((format(printf, 1, 2))); 68void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); 69void debug(const char *, ...) __attribute__((format(printf, 1, 2))); 70void debug2(const char *, ...) __attribute__((format(printf, 1, 2))); 71void debug3(const char *, ...) __attribute__((format(printf, 1, 2))); 72 73void do_log(LogLevel, const char *, va_list); 74void cleanup_exit(int) __dead; 75#endif | 66void logit(const char *, ...) __attribute__((format(printf, 1, 2))); 67void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); 68void debug(const char *, ...) __attribute__((format(printf, 1, 2))); 69void debug2(const char *, ...) __attribute__((format(printf, 1, 2))); 70void debug3(const char *, ...) __attribute__((format(printf, 1, 2))); 71 72void do_log(LogLevel, const char *, va_list); 73void cleanup_exit(int) __dead; 74#endif |