Print this page
3477 SunSSH config should accept TCPKeepAlive as synonym for KeepAlive
Reviewed by: Jerry Jelinek <jerry@joyent.com>
   1 /*
   2  * Author: Tatu Ylonen <ylo@cs.hut.fi>
   3  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
   4  *                    All rights reserved
   5  * Functions for reading the configuration files.
   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 /*
  14  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  15  * Use is subject to license terms.

  16  */
  17 
  18 #include "includes.h"
  19 RCSID("$OpenBSD: readconf.c,v 1.100 2002/06/19 00:27:55 deraadt Exp $");
  20 
  21 #include "ssh.h"
  22 #include "xmalloc.h"
  23 #include "compat.h"
  24 #include "cipher.h"
  25 #include "pathnames.h"
  26 #include "log.h"
  27 #include "readconf.h"
  28 #include "match.h"
  29 #include "misc.h"
  30 #include "kex.h"
  31 #include "mac.h"
  32 
  33 /* Format of the configuration file:
  34 
  35    # Configuration data is parsed as follows:


 187         { "port", oPort },
 188         { "cipher", oCipher },
 189         { "ciphers", oCiphers },
 190         { "macs", oMacs },
 191         { "protocol", oProtocol },
 192         { "remoteforward", oRemoteForward },
 193         { "localforward", oLocalForward },
 194         { "user", oUser },
 195         { "host", oHost },
 196         { "escapechar", oEscapeChar },
 197         { "globalknownhostsfile", oGlobalKnownHostsFile },
 198         { "userknownhostsfile", oUserKnownHostsFile },          /* obsolete */
 199         { "globalknownhostsfile2", oGlobalKnownHostsFile2 },
 200         { "userknownhostsfile2", oUserKnownHostsFile2 },        /* obsolete */
 201         { "connectionattempts", oConnectionAttempts },
 202         { "batchmode", oBatchMode },
 203         { "checkhostip", oCheckHostIP },
 204         { "stricthostkeychecking", oStrictHostKeyChecking },
 205         { "compression", oCompression },
 206         { "compressionlevel", oCompressionLevel },
 207         { "keepalive", oKeepAlives },

 208         { "numberofpasswordprompts", oNumberOfPasswordPrompts },
 209         { "loglevel", oLogLevel },
 210         { "dynamicforward", oDynamicForward },
 211         { "preferredauthentications", oPreferredAuthentications },
 212         { "hostkeyalgorithms", oHostKeyAlgorithms },
 213         { "bindaddress", oBindAddress },
 214         { "smartcarddevice", oSmartcardDevice },
 215         { "clearallforwardings", oClearAllForwardings },
 216         { "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },
 217         { "rekeylimit", oRekeyLimit },
 218         { "connecttimeout", oConnectTimeout },
 219         { "serveraliveinterval", oServerAliveInterval },
 220         { "serveralivecountmax", oServerAliveCountMax },
 221         { "disablebanner", oDisableBanner },
 222         { "hashknownhosts", oHashKnownHosts },
 223         { "ignoreifunknown", oIgnoreIfUnknown },
 224         { "useopensslengine", oUseOpenSSLEngine },
 225         { NULL, oBadOption }
 226 };
 227 


   1 /*
   2  * Author: Tatu Ylonen <ylo@cs.hut.fi>
   3  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
   4  *                    All rights reserved
   5  * Functions for reading the configuration files.
   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 /*
  14  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  15  * Use is subject to license terms.
  16  * Copyright 2013 Joyent, Inc.  All rights reserved.
  17  */
  18 
  19 #include "includes.h"
  20 RCSID("$OpenBSD: readconf.c,v 1.100 2002/06/19 00:27:55 deraadt Exp $");
  21 
  22 #include "ssh.h"
  23 #include "xmalloc.h"
  24 #include "compat.h"
  25 #include "cipher.h"
  26 #include "pathnames.h"
  27 #include "log.h"
  28 #include "readconf.h"
  29 #include "match.h"
  30 #include "misc.h"
  31 #include "kex.h"
  32 #include "mac.h"
  33 
  34 /* Format of the configuration file:
  35 
  36    # Configuration data is parsed as follows:


 188         { "port", oPort },
 189         { "cipher", oCipher },
 190         { "ciphers", oCiphers },
 191         { "macs", oMacs },
 192         { "protocol", oProtocol },
 193         { "remoteforward", oRemoteForward },
 194         { "localforward", oLocalForward },
 195         { "user", oUser },
 196         { "host", oHost },
 197         { "escapechar", oEscapeChar },
 198         { "globalknownhostsfile", oGlobalKnownHostsFile },
 199         { "userknownhostsfile", oUserKnownHostsFile },          /* obsolete */
 200         { "globalknownhostsfile2", oGlobalKnownHostsFile2 },
 201         { "userknownhostsfile2", oUserKnownHostsFile2 },        /* obsolete */
 202         { "connectionattempts", oConnectionAttempts },
 203         { "batchmode", oBatchMode },
 204         { "checkhostip", oCheckHostIP },
 205         { "stricthostkeychecking", oStrictHostKeyChecking },
 206         { "compression", oCompression },
 207         { "compressionlevel", oCompressionLevel },
 208         { "tcpkeepalive", oKeepAlives },
 209         { "keepalive", oKeepAlives },                           /* obsolete */
 210         { "numberofpasswordprompts", oNumberOfPasswordPrompts },
 211         { "loglevel", oLogLevel },
 212         { "dynamicforward", oDynamicForward },
 213         { "preferredauthentications", oPreferredAuthentications },
 214         { "hostkeyalgorithms", oHostKeyAlgorithms },
 215         { "bindaddress", oBindAddress },
 216         { "smartcarddevice", oSmartcardDevice },
 217         { "clearallforwardings", oClearAllForwardings },
 218         { "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },
 219         { "rekeylimit", oRekeyLimit },
 220         { "connecttimeout", oConnectTimeout },
 221         { "serveraliveinterval", oServerAliveInterval },
 222         { "serveralivecountmax", oServerAliveCountMax },
 223         { "disablebanner", oDisableBanner },
 224         { "hashknownhosts", oHashKnownHosts },
 225         { "ignoreifunknown", oIgnoreIfUnknown },
 226         { "useopensslengine", oUseOpenSSLEngine },
 227         { NULL, oBadOption }
 228 };
 229