2024-09-26 07:01:39 +08:00
|
|
|
/* $OpenBSD: ssh.h,v 1.91 2024/09/25 23:01:39 jsg Exp $ */
|
2002-03-05 09:53:02 +08:00
|
|
|
|
1999-10-27 11:42:43 +08:00
|
|
|
/*
|
1999-11-24 21:26:21 +08:00
|
|
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
|
|
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
|
|
|
* All rights reserved
|
2000-04-16 09:18:38 +08:00
|
|
|
*
|
2000-09-16 10:29:08 +08:00
|
|
|
* As far as I am concerned, the code I have written for this software
|
|
|
|
* can be used freely for any purpose. Any derived versions of this
|
|
|
|
* software must be clearly marked as such, and if the derived work is
|
|
|
|
* incompatible with the protocol description in the RFC file, it must be
|
|
|
|
* called by a name other than "ssh" or "Secure Shell".
|
1999-11-24 21:26:21 +08:00
|
|
|
*/
|
|
|
|
|
1999-10-27 11:42:43 +08:00
|
|
|
/* Default port number. */
|
|
|
|
#define SSH_DEFAULT_PORT 22
|
|
|
|
|
2015-09-24 14:15:11 +08:00
|
|
|
/*
|
|
|
|
* Maximum number of certificate files that can be specified
|
|
|
|
* in configuration files or on the command line.
|
|
|
|
*/
|
|
|
|
#define SSH_MAX_CERTIFICATE_FILES 100
|
|
|
|
|
1999-11-25 08:54:57 +08:00
|
|
|
/*
|
|
|
|
* Maximum number of RSA authentication identity files that can be specified
|
|
|
|
* in configuration files or on the command line.
|
|
|
|
*/
|
1999-10-27 11:42:43 +08:00
|
|
|
#define SSH_MAX_IDENTITY_FILES 100
|
|
|
|
|
1999-11-25 08:54:57 +08:00
|
|
|
/*
|
2002-06-07 04:56:07 +08:00
|
|
|
* Major protocol version. Different version indicates major incompatibility
|
1999-11-25 08:54:57 +08:00
|
|
|
* that prevents communication.
|
2000-04-12 18:17:38 +08:00
|
|
|
*
|
1999-11-25 08:54:57 +08:00
|
|
|
* Minor protocol version. Different version indicates minor incompatibility
|
|
|
|
* that does not prevent interoperation.
|
2024-09-26 07:01:39 +08:00
|
|
|
*
|
|
|
|
* We support only SSH2
|
1999-11-25 08:54:57 +08:00
|
|
|
*/
|
2000-04-12 18:17:38 +08:00
|
|
|
#define PROTOCOL_MAJOR_2 2
|
|
|
|
#define PROTOCOL_MINOR_2 0
|
1999-10-27 11:42:43 +08:00
|
|
|
|
1999-11-25 08:54:57 +08:00
|
|
|
/*
|
|
|
|
* Name for the service. The port named by this service overrides the
|
|
|
|
* default port if present.
|
|
|
|
*/
|
1999-10-27 11:42:43 +08:00
|
|
|
#define SSH_SERVICE_NAME "ssh"
|
|
|
|
|
1999-11-25 08:54:57 +08:00
|
|
|
/*
|
2002-06-23 08:30:30 +08:00
|
|
|
* Name of the environment variable containing the process ID of the
|
|
|
|
* authentication agent.
|
1999-11-25 08:54:57 +08:00
|
|
|
*/
|
2001-02-05 23:43:59 +08:00
|
|
|
#define SSH_AGENTPID_ENV_NAME "SSH_AGENT_PID"
|
1999-10-27 11:42:43 +08:00
|
|
|
|
1999-11-25 08:54:57 +08:00
|
|
|
/*
|
|
|
|
* Name of the environment variable containing the pathname of the
|
|
|
|
* authentication socket.
|
|
|
|
*/
|
2001-01-22 13:34:40 +08:00
|
|
|
#define SSH_AUTHSOCKET_ENV_NAME "SSH_AUTH_SOCK"
|
1999-10-29 08:21:15 +08:00
|
|
|
|
1999-12-06 08:47:28 +08:00
|
|
|
/*
|
2001-01-22 13:34:40 +08:00
|
|
|
* Environment variable for overwriting the default location of askpass
|
1999-12-06 08:47:28 +08:00
|
|
|
*/
|
|
|
|
#define SSH_ASKPASS_ENV "SSH_ASKPASS"
|
|
|
|
|
2020-07-15 07:57:01 +08:00
|
|
|
/*
|
|
|
|
* Environment variable to control whether or not askpass is used.
|
|
|
|
*/
|
|
|
|
#define SSH_ASKPASS_REQUIRE_ENV "SSH_ASKPASS_REQUIRE"
|
|
|
|
|
1999-11-25 08:54:57 +08:00
|
|
|
/*
|
|
|
|
* Length of the session key in bytes. (Specified as 256 bits in the
|
|
|
|
* protocol.)
|
|
|
|
*/
|
1999-10-27 11:42:43 +08:00
|
|
|
#define SSH_SESSION_KEY_LENGTH 32
|
|
|
|
|
2001-06-06 04:32:21 +08:00
|
|
|
/* Used to identify ``EscapeChar none'' */
|
|
|
|
#define SSH_ESCAPECHAR_NONE -2
|
|
|
|
|
2002-03-22 11:11:49 +08:00
|
|
|
/*
|
|
|
|
* unprivileged user when UsePrivilegeSeparation=yes;
|
2002-05-16 00:09:57 +08:00
|
|
|
* sshd will change its privileges to this user and its
|
2002-03-22 11:11:49 +08:00
|
|
|
* primary group.
|
|
|
|
*/
|
2002-04-08 03:22:54 +08:00
|
|
|
#ifndef SSH_PRIVSEP_USER
|
2002-05-16 00:08:48 +08:00
|
|
|
#define SSH_PRIVSEP_USER "sshd"
|
2002-04-08 03:22:54 +08:00
|
|
|
#endif
|
2002-03-22 11:11:49 +08:00
|
|
|
|
2003-12-09 16:15:11 +08:00
|
|
|
/* Listen backlog for sshd, ssh-agent and forwarding sockets */
|
|
|
|
#define SSH_LISTEN_BACKLOG 128
|
2018-12-27 11:25:24 +08:00
|
|
|
|
|
|
|
/* Limits for banner exchange */
|
|
|
|
#define SSH_MAX_BANNER_LEN 8192
|
|
|
|
#define SSH_MAX_PRE_BANNER_LINES 1024
|