ssh.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /* $OpenBSD: ssh.h,v 1.90 2020/07/14 23:57:01 djm Exp $ */
  2. /*
  3. * Author: Tatu Ylonen <ylo@cs.hut.fi>
  4. * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  5. * All rights reserved
  6. *
  7. * As far as I am concerned, the code I have written for this software
  8. * can be used freely for any purpose. Any derived versions of this
  9. * software must be clearly marked as such, and if the derived work is
  10. * incompatible with the protocol description in the RFC file, it must be
  11. * called by a name other than "ssh" or "Secure Shell".
  12. */
  13. /* Cipher used for encrypting authentication files. */
  14. #define SSH_AUTHFILE_CIPHER SSH_CIPHER_3DES
  15. /* Default port number. */
  16. #define SSH_DEFAULT_PORT 22
  17. /*
  18. * Maximum number of certificate files that can be specified
  19. * in configuration files or on the command line.
  20. */
  21. #define SSH_MAX_CERTIFICATE_FILES 100
  22. /*
  23. * Maximum number of RSA authentication identity files that can be specified
  24. * in configuration files or on the command line.
  25. */
  26. #define SSH_MAX_IDENTITY_FILES 100
  27. /*
  28. * Major protocol version. Different version indicates major incompatibility
  29. * that prevents communication.
  30. *
  31. * Minor protocol version. Different version indicates minor incompatibility
  32. * that does not prevent interoperation.
  33. */
  34. #define PROTOCOL_MAJOR_1 1
  35. #define PROTOCOL_MINOR_1 5
  36. /* We support only SSH2 */
  37. #define PROTOCOL_MAJOR_2 2
  38. #define PROTOCOL_MINOR_2 0
  39. /*
  40. * Name for the service. The port named by this service overrides the
  41. * default port if present.
  42. */
  43. #define SSH_SERVICE_NAME "ssh"
  44. /*
  45. * Name of the environment variable containing the process ID of the
  46. * authentication agent.
  47. */
  48. #define SSH_AGENTPID_ENV_NAME "SSH_AGENT_PID"
  49. /*
  50. * Name of the environment variable containing the pathname of the
  51. * authentication socket.
  52. */
  53. #define SSH_AUTHSOCKET_ENV_NAME "SSH_AUTH_SOCK"
  54. /*
  55. * Environment variable for overwriting the default location of askpass
  56. */
  57. #define SSH_ASKPASS_ENV "SSH_ASKPASS"
  58. /*
  59. * Environment variable to control whether or not askpass is used.
  60. */
  61. #define SSH_ASKPASS_REQUIRE_ENV "SSH_ASKPASS_REQUIRE"
  62. /*
  63. * Force host key length and server key length to differ by at least this
  64. * many bits. This is to make double encryption with rsaref work.
  65. */
  66. #define SSH_KEY_BITS_RESERVED 128
  67. /*
  68. * Length of the session key in bytes. (Specified as 256 bits in the
  69. * protocol.)
  70. */
  71. #define SSH_SESSION_KEY_LENGTH 32
  72. /* Used to identify ``EscapeChar none'' */
  73. #define SSH_ESCAPECHAR_NONE -2
  74. /*
  75. * unprivileged user when UsePrivilegeSeparation=yes;
  76. * sshd will change its privileges to this user and its
  77. * primary group.
  78. */
  79. #ifndef SSH_PRIVSEP_USER
  80. #define SSH_PRIVSEP_USER "sshd"
  81. #endif
  82. /* Listen backlog for sshd, ssh-agent and forwarding sockets */
  83. #define SSH_LISTEN_BACKLOG 128
  84. /* Limits for banner exchange */
  85. #define SSH_MAX_BANNER_LEN 8192
  86. #define SSH_MAX_PRE_BANNER_LINES 1024