2000-02-24 14:29:47 +00:00
|
|
|
/*
|
|
|
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
|
|
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
|
|
|
* All rights reserved
|
2000-05-15 05:24:25 +00:00
|
|
|
*
|
2000-09-10 09:35:38 +00: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".
|
2000-02-24 14:29:47 +00:00
|
|
|
*/
|
|
|
|
|
2001-05-04 04:14:23 +00:00
|
|
|
/* RCSID("$OpenBSD: ssh.h,v 1.62 2001/01/23 10:45:10 markus Exp $"); */
|
|
|
|
/* RCSID("$FreeBSD$"); */
|
2000-02-24 14:29:47 +00:00
|
|
|
|
|
|
|
#ifndef SSH_H
|
|
|
|
#define SSH_H
|
|
|
|
|
|
|
|
/* Cipher used for encrypting authentication files. */
|
|
|
|
#define SSH_AUTHFILE_CIPHER SSH_CIPHER_3DES
|
|
|
|
|
|
|
|
/* Default port number. */
|
|
|
|
#define SSH_DEFAULT_PORT 22
|
|
|
|
|
|
|
|
/* Maximum number of TCP/IP ports forwarded per direction. */
|
|
|
|
#define SSH_MAX_FORWARDS_PER_DIRECTION 100
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Maximum number of RSA authentication identity files that can be specified
|
|
|
|
* in configuration files or on the command line.
|
|
|
|
*/
|
|
|
|
#define SSH_MAX_IDENTITY_FILES 100
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Major protocol version. Different version indicates major incompatiblity
|
|
|
|
* that prevents communication.
|
2000-05-15 05:24:25 +00:00
|
|
|
*
|
2000-02-24 14:29:47 +00:00
|
|
|
* Minor protocol version. Different version indicates minor incompatibility
|
|
|
|
* that does not prevent interoperation.
|
|
|
|
*/
|
2000-05-15 05:24:25 +00:00
|
|
|
#define PROTOCOL_MAJOR_1 1
|
|
|
|
#define PROTOCOL_MINOR_1 5
|
|
|
|
|
|
|
|
/* We support both SSH1 and SSH2 */
|
|
|
|
#define PROTOCOL_MAJOR_2 2
|
|
|
|
#define PROTOCOL_MINOR_2 0
|
2000-02-24 14:29:47 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Name for the service. The port named by this service overrides the
|
|
|
|
* default port if present.
|
|
|
|
*/
|
|
|
|
#define SSH_SERVICE_NAME "ssh"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Name of the environment variable containing the pathname of the
|
|
|
|
* authentication socket.
|
|
|
|
*/
|
2001-05-04 04:14:23 +00:00
|
|
|
#define SSH_AGENTPID_ENV_NAME "SSH_AGENT_PID"
|
2000-02-24 14:29:47 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Name of the environment variable containing the pathname of the
|
|
|
|
* authentication socket.
|
|
|
|
*/
|
2001-05-04 04:14:23 +00:00
|
|
|
#define SSH_AUTHSOCKET_ENV_NAME "SSH_AUTH_SOCK"
|
2000-02-24 14:29:47 +00:00
|
|
|
|
|
|
|
/*
|
2001-05-04 04:14:23 +00:00
|
|
|
* Environment variable for overwriting the default location of askpass
|
2000-02-24 14:29:47 +00:00
|
|
|
*/
|
|
|
|
#define SSH_ASKPASS_ENV "SSH_ASKPASS"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Force host key length and server key length to differ by at least this
|
|
|
|
* many bits. This is to make double encryption with rsaref work.
|
|
|
|
*/
|
|
|
|
#define SSH_KEY_BITS_RESERVED 128
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Length of the session key in bytes. (Specified as 256 bits in the
|
|
|
|
* protocol.)
|
|
|
|
*/
|
|
|
|
#define SSH_SESSION_KEY_LENGTH 32
|
|
|
|
|
|
|
|
/* Name of Kerberos service for SSH to use. */
|
|
|
|
#define KRB4_SERVICE_NAME "rcmd"
|
|
|
|
|
2001-03-04 02:22:04 +00:00
|
|
|
/* Kerberos IV tickets can't be forwarded. This is an AFS hack! */
|
|
|
|
#define SSH_CMSG_HAVE_KRB4_TGT SSH_CMSG_HAVE_KERBEROS_TGT /* credentials (s) */
|
2000-02-28 19:03:50 +00:00
|
|
|
|
2000-12-05 02:55:12 +00:00
|
|
|
#ifdef USE_PAM
|
|
|
|
#include "auth-pam.h"
|
|
|
|
#endif /* USE_PAM */
|
|
|
|
|
2000-02-24 14:29:47 +00:00
|
|
|
#endif /* SSH_H */
|