ssh.h revision 98684
198684Sdes/*	$OpenBSD: ssh.h,v 1.70 2002/06/03 12:04:07 deraadt Exp $	*/
292559Sdes/*	$FreeBSD: head/crypto/openssh/ssh.h 98684 2002-06-23 16:09:08Z des $	*/
392559Sdes
457429Smarkm/*
557429Smarkm * Author: Tatu Ylonen <ylo@cs.hut.fi>
657429Smarkm * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
757429Smarkm *                    All rights reserved
860576Skris *
965674Skris * As far as I am concerned, the code I have written for this software
1065674Skris * can be used freely for any purpose.  Any derived versions of this
1165674Skris * software must be clearly marked as such, and if the derived work is
1265674Skris * incompatible with the protocol description in the RFC file, it must be
1365674Skris * called by a name other than "ssh" or "Secure Shell".
1457429Smarkm */
1557429Smarkm
1657429Smarkm#ifndef SSH_H
1757429Smarkm#define SSH_H
1857429Smarkm
1957429Smarkm/* Cipher used for encrypting authentication files. */
2057429Smarkm#define SSH_AUTHFILE_CIPHER	SSH_CIPHER_3DES
2157429Smarkm
2257429Smarkm/* Default port number. */
2357429Smarkm#define SSH_DEFAULT_PORT	22
2457429Smarkm
2557429Smarkm/* Maximum number of TCP/IP ports forwarded per direction. */
2657429Smarkm#define SSH_MAX_FORWARDS_PER_DIRECTION	100
2757429Smarkm
2857429Smarkm/*
2957429Smarkm * Maximum number of RSA authentication identity files that can be specified
3057429Smarkm * in configuration files or on the command line.
3157429Smarkm */
3257429Smarkm#define SSH_MAX_IDENTITY_FILES		100
3357429Smarkm
3457429Smarkm/*
3598684Sdes * Major protocol version.  Different version indicates major incompatibility
3657429Smarkm * that prevents communication.
3760576Skris *
3857429Smarkm * Minor protocol version.  Different version indicates minor incompatibility
3957429Smarkm * that does not prevent interoperation.
4057429Smarkm */
4160576Skris#define PROTOCOL_MAJOR_1	1
4260576Skris#define PROTOCOL_MINOR_1	5
4357429Smarkm
4460576Skris/* We support both SSH1 and SSH2 */
4560576Skris#define PROTOCOL_MAJOR_2	2
4660576Skris#define PROTOCOL_MINOR_2	0
4760576Skris
4857429Smarkm/*
4957429Smarkm * Name for the service.  The port named by this service overrides the
5057429Smarkm * default port if present.
5157429Smarkm */
5257429Smarkm#define SSH_SERVICE_NAME	"ssh"
5357429Smarkm
5457429Smarkm/*
5557429Smarkm * Name of the environment variable containing the pathname of the
5657429Smarkm * authentication socket.
5757429Smarkm */
5876262Sgreen#define SSH_AGENTPID_ENV_NAME	"SSH_AGENT_PID"
5957429Smarkm
6057429Smarkm/*
6157429Smarkm * Name of the environment variable containing the pathname of the
6257429Smarkm * authentication socket.
6357429Smarkm */
6476262Sgreen#define SSH_AUTHSOCKET_ENV_NAME "SSH_AUTH_SOCK"
6557429Smarkm
6657429Smarkm/*
6776262Sgreen * Environment variable for overwriting the default location of askpass
6857429Smarkm */
6957429Smarkm#define SSH_ASKPASS_ENV		"SSH_ASKPASS"
7057429Smarkm
7157429Smarkm/*
7257429Smarkm * Force host key length and server key length to differ by at least this
7357429Smarkm * many bits.  This is to make double encryption with rsaref work.
7457429Smarkm */
7557429Smarkm#define SSH_KEY_BITS_RESERVED		128
7657429Smarkm
7757429Smarkm/*
7857429Smarkm * Length of the session key in bytes.  (Specified as 256 bits in the
7957429Smarkm * protocol.)
8057429Smarkm */
8157429Smarkm#define SSH_SESSION_KEY_LENGTH		32
8257429Smarkm
8357429Smarkm/* Name of Kerberos service for SSH to use. */
8457429Smarkm#define KRB4_SERVICE_NAME		"rcmd"
8557429Smarkm
8692559Sdes/* Used to identify ``EscapeChar none'' */
8792559Sdes#define SSH_ESCAPECHAR_NONE		-2
8857565Smarkm
8998684Sdes/*
9098684Sdes * unprivileged user when UsePrivilegeSeparation=yes;
9198684Sdes * sshd will change its privileges to this user and its
9298684Sdes * primary group.
9398684Sdes */
9498684Sdes#define SSH_PRIVSEP_USER		"sshd"
9598684Sdes
9698684Sdes/* Minimum modulus size (n) for RSA keys. */
9798684Sdes#define SSH_RSA_MINIMUM_MODULUS_SIZE	768
9898684Sdes
9969591Sgreen#ifdef USE_PAM
10069591Sgreen#include "auth-pam.h"
10169591Sgreen#endif /* USE_PAM */
10269591Sgreen
10357429Smarkm#endif				/* SSH_H */
104