Print this page
3477 SunSSH config should accept TCPKeepAlive as synonym for KeepAlive
Reviewed by: Jerry Jelinek <jerry@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ssh/sshd/servconf.c
          +++ new/usr/src/cmd/ssh/sshd/servconf.c
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3   *                    All rights reserved
   4    4   *
   5    5   * As far as I am concerned, the code I have written for this software
   6    6   * can be used freely for any purpose.  Any derived versions of this
   7    7   * software must be clearly marked as such, and if the derived work is
   8    8   * incompatible with the protocol description in the RFC file, it must be
   9    9   * called by a name other than "ssh" or "Secure Shell".
  10   10   */
  11   11  /*
  12   12   * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
       13 + * Copyright 2013 Joyent, Inc.  All rights reserved.
  13   14   */
  14   15  
  15   16  #include "includes.h"
  16   17  RCSID("$OpenBSD: servconf.c,v 1.115 2002/09/04 18:52:42 stevesk Exp $");
  17   18  
  18   19  #ifdef HAVE_DEFOPEN
  19   20  #include <deflt.h>
  20   21  #endif /* HAVE_DEFOPEN */
  21   22  
  22   23  #if defined(KRB4)
↓ open down ↓ 471 lines elided ↑ open up ↑
 494  495          { "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL },
 495  496          { "x11forwarding", sX11Forwarding, SSHCFG_ALL },
 496  497          { "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL },
 497  498          { "x11uselocalhost", sX11UseLocalhost, SSHCFG_ALL },
 498  499          { "xauthlocation", sXAuthLocation, SSHCFG_GLOBAL },
 499  500          { "strictmodes", sStrictModes, SSHCFG_GLOBAL },
 500  501          { "permitemptypasswords", sEmptyPasswd, SSHCFG_ALL },
 501  502          { "permituserenvironment", sPermitUserEnvironment, SSHCFG_GLOBAL },
 502  503          { "uselogin", sUseLogin, SSHCFG_GLOBAL },
 503  504          { "compression", sCompression, SSHCFG_GLOBAL },
 504      -        { "keepalive", sKeepAlives, SSHCFG_GLOBAL },
      505 +        { "tcpkeepalive", sKeepAlives, SSHCFG_GLOBAL },
      506 +        { "keepalive", sKeepAlives, SSHCFG_GLOBAL },            /* obsolete */
 505  507          { "allowtcpforwarding", sAllowTcpForwarding, SSHCFG_ALL },
 506  508          { "allowusers", sAllowUsers, SSHCFG_GLOBAL },
 507  509          { "denyusers", sDenyUsers, SSHCFG_GLOBAL },
 508  510          { "allowgroups", sAllowGroups, SSHCFG_GLOBAL },
 509  511          { "denygroups", sDenyGroups, SSHCFG_GLOBAL },
 510  512          { "ciphers", sCiphers, SSHCFG_GLOBAL },
 511  513          { "macs", sMacs, SSHCFG_GLOBAL},
 512  514          { "protocol", sProtocol,SSHCFG_GLOBAL },
 513  515          { "gatewayports", sGatewayPorts, SSHCFG_ALL },
 514  516          { "subsystem", sSubsystem, SSHCFG_GLOBAL},
↓ open down ↓ 978 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX