Home | History | Annotate | Download | only in common
      1 /* LINTLIBRARY */
      2 /* PROTOLIB1 */
      3 
      4 /*
      5  * CDDL HEADER START
      6  *
      7  * The contents of this file are subject to the terms of the
      8  * Common Development and Distribution License (the "License").
      9  * You may not use this file except in compliance with the License.
     10  *
     11  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     12  * or http://www.opensolaris.org/os/licensing.
     13  * See the License for the specific language governing permissions
     14  * and limitations under the License.
     15  *
     16  * When distributing Covered Code, include this CDDL HEADER in each
     17  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     18  * If applicable, add the following below this CDDL HEADER, with the
     19  * fields enclosed by brackets "[]" replaced with your own identifying
     20  * information: Portions Copyright [yyyy] [name of copyright owner]
     21  *
     22  * CDDL HEADER END
     23  *
     24  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     25  * Use is subject to license terms.
     26  */
     27 
     28 #include <includes.h>
     29 #include <ssh.h>
     30 #include <atomicio.h>
     31 #include <auth.h>
     32 #include <auth-pam.h>
     33 #include <auth2-pam.h>
     34 #include <authfd.h>
     35 #include <authfile.h>
     36 #include <auth-options.h>
     37 #include <base64.h>
     38 #include <bindresvport.h>
     39 #include <bsd-arc4random.h>
     40 #include <bsd-cray.h>
     41 #include <bsd-cygwin_util.h>
     42 #include <bsd-getpeereid.h>
     43 #include <bsd-misc.h>
     44 #include <bsd-snprintf.h>
     45 #include <bsd-waitpid.h>
     46 #include <bufaux.h>
     47 #include <buffer.h>
     48 #include <canohost.h>
     49 #include <channels.h>
     50 #include <cipher.h>
     51 #include <clientloop.h>
     52 #include <compat.h>
     53 #include <compress.h>
     54 #include <config.h>
     55 #include <crc32.h>
     56 #include <daemon.h>
     57 #include <deattack.h>
     58 #include <defines.h>
     59 #include <dh.h>
     60 #include <dirname.h>
     61 #include <dispatch.h>
     62 #include <entropy.h>
     63 #include <fake-gai-errnos.h>
     64 #include <fake-getaddrinfo.h>
     65 #include <fake-getnameinfo.h>
     66 #include <fake-socket.h>
     67 #include <g11n.h>
     68 #include <getcwd.h>
     69 #include <getgrouplist.h>
     70 #include <getopt.h>
     71 #include <getput.h>
     72 #include <glob.h>
     73 #include <groupaccess.h>
     74 #include <hostfile.h>
     75 #include <inet_ntoa.h>
     76 #include <inet_ntop.h>
     77 #include <kex.h>
     78 #include <key.h>
     79 #include <log.h>
     80 #include <loginrec.h>
     81 #include <mac.h>
     82 #include <match.h>
     83 #include <misc.h>
     84 #include <mktemp.h>
     85 #include <mpaux.h>
     86 #include <msg.h>
     87 #include <myproposal.h>
     88 #include <openbsd-compat.h>
     89 #include <packet.h>
     90 #include <pathnames.h>
     91 #include <port-aix.h>
     92 #include <port-irix.h>
     93 #include <proxy-io.h>
     94 #include <readconf.h>
     95 #include <readpass.h>
     96 #include <readpassphrase.h>
     97 #include <realpath.h>
     98 #include <rresvport.h>
     99 #include <rsa.h>
    100 #include <servconf.h>
    101 #include <serverloop.h>
    102 #include <session.h>
    103 #include <setproctitle.h>
    104 #include <sftp-common.h>
    105 #include <sftp.h>
    106 #include <sftp-client.h>
    107 #include <sigact.h>
    108 #include <ssh1.h>
    109 #include <ssh2.h>
    110 #include <sshconnect.h>
    111 #include <ssh-dss.h>
    112 #include <sshlogin.h>
    113 #include <sshpty.h>
    114 #include <ssh-rsa.h>
    115 #include <sshtty.h>
    116 #include <strlcat.h>
    117 #include <strlcpy.h>
    118 #include <strmode.h>
    119 #include <sys-queue.h>
    120 #include <sys-tree.h>
    121 #include <tildexpand.h>
    122 #include <uidswap.h>
    123 #include <uuencode.h>
    124 #include <version.h>
    125 #include <xlist.h>
    126 #include <xmalloc.h>
    127 #include <xmmap.h>
    128 
    129 extern uid_t original_real_uid;
    130 extern char *__progname;
    131 
    132