diff options
Diffstat (limited to 'ssh.h')
-rw-r--r-- | ssh.h | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -1,19 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | * | ||
3 | * ssh.h | ||
4 | * | ||
5 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 2 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
6 | * | ||
7 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
8 | * All rights reserved | 4 | * All rights reserved |
9 | * | 5 | * |
10 | * Created: Fri Mar 17 17:09:37 1995 ylo | ||
11 | * | ||
12 | * Generic header file for ssh. | 6 | * Generic header file for ssh. |
13 | * | 7 | * |
8 | * As far as I am concerned, the code I have written for this software | ||
9 | * can be used freely for any purpose. Any derived versions of this | ||
10 | * software must be clearly marked as such, and if the derived work is | ||
11 | * incompatible with the protocol description in the RFC file, it must be | ||
12 | * called by a name other than "ssh" or "Secure Shell". | ||
14 | */ | 13 | */ |
15 | 14 | ||
16 | /* RCSID("$OpenBSD: ssh.h,v 1.49 2000/08/19 18:48:11 markus Exp $"); */ | 15 | /* RCSID("$OpenBSD: ssh.h,v 1.51 2000/09/12 20:53:10 markus Exp $"); */ |
17 | 16 | ||
18 | #ifndef SSH_H | 17 | #ifndef SSH_H |
19 | #define SSH_H | 18 | #define SSH_H |
@@ -450,7 +449,9 @@ typedef enum { | |||
450 | SYSLOG_LEVEL_ERROR, | 449 | SYSLOG_LEVEL_ERROR, |
451 | SYSLOG_LEVEL_INFO, | 450 | SYSLOG_LEVEL_INFO, |
452 | SYSLOG_LEVEL_VERBOSE, | 451 | SYSLOG_LEVEL_VERBOSE, |
453 | SYSLOG_LEVEL_DEBUG | 452 | SYSLOG_LEVEL_DEBUG1, |
453 | SYSLOG_LEVEL_DEBUG2, | ||
454 | SYSLOG_LEVEL_DEBUG3 | ||
454 | } LogLevel; | 455 | } LogLevel; |
455 | /* Initializes logging. */ | 456 | /* Initializes logging. */ |
456 | void log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr); | 457 | void log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr); |
@@ -468,6 +469,8 @@ void error(const char *fmt,...) __attribute__((format(printf, 1, 2))); | |||
468 | void log(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 469 | void log(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
469 | void verbose(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 470 | void verbose(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
470 | void debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 471 | void debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
472 | void debug2(const char *fmt,...) __attribute__((format(printf, 1, 2))); | ||
473 | void debug3(const char *fmt,...) __attribute__((format(printf, 1, 2))); | ||
471 | 474 | ||
472 | /* same as fatal() but w/o logging */ | 475 | /* same as fatal() but w/o logging */ |
473 | void fatal_cleanup(void); | 476 | void fatal_cleanup(void); |