mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-21 18:50:50 +01:00
19261079b7
Some notable changes, from upstream's release notes: - sshd(8): Remove support for obsolete "host/port" syntax. - ssh(1): When prompting whether to record a new host key, accept the key fingerprint as a synonym for "yes". - ssh-keygen(1): when acting as a CA and signing certificates with an RSA key, default to using the rsa-sha2-512 signature algorithm. - ssh(1), sshd(8), ssh-keygen(1): this release removes the "ssh-rsa" (RSA/SHA1) algorithm from those accepted for certificate signatures. - ssh-sk-helper(8): this is a new binary. It is used by the FIDO/U2F support to provide address-space isolation for token middleware libraries (including the internal one). - ssh(1): this release enables UpdateHostkeys by default subject to some conservative preconditions. - scp(1): this release changes the behaviour of remote to remote copies (e.g. "scp host-a:/path host-b:") to transfer through the local host by default. - scp(1): experimental support for transfers using the SFTP protocol as a replacement for the venerable SCP/RCP protocol that it has traditionally used. Additional integration work is needed to support FIDO/U2F in the base system. Deprecation Notice ------------------ OpenSSH will disable the ssh-rsa signature scheme by default in the next release. Reviewed by: imp MFC after: 1 month Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29985
105 lines
2.8 KiB
C
105 lines
2.8 KiB
C
/* $OpenBSD: ssh.h,v 1.90 2020/07/14 23:57:01 djm Exp $ */
|
|
|
|
/*
|
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
|
* All rights reserved
|
|
*
|
|
* 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".
|
|
*/
|
|
|
|
/* Cipher used for encrypting authentication files. */
|
|
#define SSH_AUTHFILE_CIPHER SSH_CIPHER_3DES
|
|
|
|
/* Default port number. */
|
|
#define SSH_DEFAULT_PORT 22
|
|
|
|
/*
|
|
* Maximum number of certificate files that can be specified
|
|
* in configuration files or on the command line.
|
|
*/
|
|
#define SSH_MAX_CERTIFICATE_FILES 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 incompatibility
|
|
* that prevents communication.
|
|
*
|
|
* Minor protocol version. Different version indicates minor incompatibility
|
|
* that does not prevent interoperation.
|
|
*/
|
|
#define PROTOCOL_MAJOR_1 1
|
|
#define PROTOCOL_MINOR_1 5
|
|
|
|
/* We support only SSH2 */
|
|
#define PROTOCOL_MAJOR_2 2
|
|
#define PROTOCOL_MINOR_2 0
|
|
|
|
/*
|
|
* 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 process ID of the
|
|
* authentication agent.
|
|
*/
|
|
#define SSH_AGENTPID_ENV_NAME "SSH_AGENT_PID"
|
|
|
|
/*
|
|
* Name of the environment variable containing the pathname of the
|
|
* authentication socket.
|
|
*/
|
|
#define SSH_AUTHSOCKET_ENV_NAME "SSH_AUTH_SOCK"
|
|
|
|
/*
|
|
* Environment variable for overwriting the default location of askpass
|
|
*/
|
|
#define SSH_ASKPASS_ENV "SSH_ASKPASS"
|
|
|
|
/*
|
|
* Environment variable to control whether or not askpass is used.
|
|
*/
|
|
#define SSH_ASKPASS_REQUIRE_ENV "SSH_ASKPASS_REQUIRE"
|
|
|
|
/*
|
|
* 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
|
|
|
|
/* Used to identify ``EscapeChar none'' */
|
|
#define SSH_ESCAPECHAR_NONE -2
|
|
|
|
/*
|
|
* unprivileged user when UsePrivilegeSeparation=yes;
|
|
* sshd will change its privileges to this user and its
|
|
* primary group.
|
|
*/
|
|
#ifndef SSH_PRIVSEP_USER
|
|
#define SSH_PRIVSEP_USER "sshd"
|
|
#endif
|
|
|
|
/* Listen backlog for sshd, ssh-agent and forwarding sockets */
|
|
#define SSH_LISTEN_BACKLOG 128
|
|
|
|
/* Limits for banner exchange */
|
|
#define SSH_MAX_BANNER_LEN 8192
|
|
#define SSH_MAX_PRE_BANNER_LINES 1024
|