ssh.h revision 126277
1126277Sdes/* $OpenBSD: ssh.h,v 1.75 2003/12/02 17:01:15 markus Exp $ */ 292559Sdes 357429Smarkm/* 457429Smarkm * Author: Tatu Ylonen <ylo@cs.hut.fi> 557429Smarkm * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 657429Smarkm * All rights reserved 760576Skris * 865674Skris * As far as I am concerned, the code I have written for this software 965674Skris * can be used freely for any purpose. Any derived versions of this 1065674Skris * software must be clearly marked as such, and if the derived work is 1165674Skris * incompatible with the protocol description in the RFC file, it must be 1265674Skris * called by a name other than "ssh" or "Secure Shell". 1357429Smarkm */ 1457429Smarkm 1557429Smarkm#ifndef SSH_H 1657429Smarkm#define SSH_H 1757429Smarkm 1898941Sdes#include <netinet/in.h> /* For struct sockaddr_in */ 1998941Sdes#include <pwd.h> /* For struct pw */ 2098941Sdes#include <stdarg.h> /* For va_list */ 2198941Sdes#include <syslog.h> /* For LOG_AUTH and friends */ 2298941Sdes#include <sys/socket.h> /* For struct sockaddr_storage */ 2398941Sdes#ifdef HAVE_SYS_SELECT_H 2498941Sdes# include <sys/select.h> 2598941Sdes#endif 2698941Sdes 2757429Smarkm/* Cipher used for encrypting authentication files. */ 2857429Smarkm#define SSH_AUTHFILE_CIPHER SSH_CIPHER_3DES 2957429Smarkm 3057429Smarkm/* Default port number. */ 3157429Smarkm#define SSH_DEFAULT_PORT 22 3257429Smarkm 3357429Smarkm/* Maximum number of TCP/IP ports forwarded per direction. */ 3457429Smarkm#define SSH_MAX_FORWARDS_PER_DIRECTION 100 3557429Smarkm 3657429Smarkm/* 3757429Smarkm * Maximum number of RSA authentication identity files that can be specified 3857429Smarkm * in configuration files or on the command line. 3957429Smarkm */ 4057429Smarkm#define SSH_MAX_IDENTITY_FILES 100 4157429Smarkm 4257429Smarkm/* 4398684Sdes * Major protocol version. Different version indicates major incompatibility 4457429Smarkm * that prevents communication. 4560576Skris * 4657429Smarkm * Minor protocol version. Different version indicates minor incompatibility 4757429Smarkm * that does not prevent interoperation. 4857429Smarkm */ 4960576Skris#define PROTOCOL_MAJOR_1 1 5060576Skris#define PROTOCOL_MINOR_1 5 5157429Smarkm 5260576Skris/* We support both SSH1 and SSH2 */ 5360576Skris#define PROTOCOL_MAJOR_2 2 5460576Skris#define PROTOCOL_MINOR_2 0 5560576Skris 5657429Smarkm/* 5757429Smarkm * Name for the service. The port named by this service overrides the 5857429Smarkm * default port if present. 5957429Smarkm */ 6057429Smarkm#define SSH_SERVICE_NAME "ssh" 6157429Smarkm 6257429Smarkm/* 6399063Sdes * Name of the environment variable containing the process ID of the 6499063Sdes * authentication agent. 6557429Smarkm */ 6676262Sgreen#define SSH_AGENTPID_ENV_NAME "SSH_AGENT_PID" 6757429Smarkm 6857429Smarkm/* 6957429Smarkm * Name of the environment variable containing the pathname of the 7057429Smarkm * authentication socket. 7157429Smarkm */ 7276262Sgreen#define SSH_AUTHSOCKET_ENV_NAME "SSH_AUTH_SOCK" 7357429Smarkm 7457429Smarkm/* 7576262Sgreen * Environment variable for overwriting the default location of askpass 7657429Smarkm */ 7757429Smarkm#define SSH_ASKPASS_ENV "SSH_ASKPASS" 7857429Smarkm 7957429Smarkm/* 8057429Smarkm * Force host key length and server key length to differ by at least this 8157429Smarkm * many bits. This is to make double encryption with rsaref work. 8257429Smarkm */ 8357429Smarkm#define SSH_KEY_BITS_RESERVED 128 8457429Smarkm 8557429Smarkm/* 8657429Smarkm * Length of the session key in bytes. (Specified as 256 bits in the 8757429Smarkm * protocol.) 8857429Smarkm */ 8957429Smarkm#define SSH_SESSION_KEY_LENGTH 32 9057429Smarkm 9192559Sdes/* Used to identify ``EscapeChar none'' */ 9292559Sdes#define SSH_ESCAPECHAR_NONE -2 9357565Smarkm 9498684Sdes/* 9598684Sdes * unprivileged user when UsePrivilegeSeparation=yes; 9698684Sdes * sshd will change its privileges to this user and its 9798684Sdes * primary group. 9898684Sdes */ 9998941Sdes#ifndef SSH_PRIVSEP_USER 10098684Sdes#define SSH_PRIVSEP_USER "sshd" 10198941Sdes#endif 10298684Sdes 10398684Sdes/* Minimum modulus size (n) for RSA keys. */ 10498684Sdes#define SSH_RSA_MINIMUM_MODULUS_SIZE 768 10598684Sdes 106126277Sdes/* Listen backlog for sshd, ssh-agent and forwarding sockets */ 107126277Sdes#define SSH_LISTEN_BACKLOG 128 108126277Sdes 10957429Smarkm#endif /* SSH_H */ 110