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