17c478bd9Sstevel@tonic-gate/* LINTLIBRARY */ 27c478bd9Sstevel@tonic-gate/* PROTOLIB1 */ 37c478bd9Sstevel@tonic-gate 47c478bd9Sstevel@tonic-gate/* 57c478bd9Sstevel@tonic-gate * CDDL HEADER START 67c478bd9Sstevel@tonic-gate * 77c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 890685d2cSjp161948 * Common Development and Distribution License (the "License"). 990685d2cSjp161948 * You may not use this file except in compliance with the License. 107c478bd9Sstevel@tonic-gate * 117c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 127c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 137c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 147c478bd9Sstevel@tonic-gate * and limitations under the License. 157c478bd9Sstevel@tonic-gate * 167c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 177c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 187c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 197c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 207c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 217c478bd9Sstevel@tonic-gate * 227c478bd9Sstevel@tonic-gate * CDDL HEADER END 237c478bd9Sstevel@tonic-gate * 24*44991a1cSVladimir Kotal * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 257c478bd9Sstevel@tonic-gate * Use is subject to license terms. 267c478bd9Sstevel@tonic-gate */ 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate#include <includes.h> 297c478bd9Sstevel@tonic-gate#include <ssh.h> 307c478bd9Sstevel@tonic-gate#include <atomicio.h> 317c478bd9Sstevel@tonic-gate#include <auth.h> 327c478bd9Sstevel@tonic-gate#include <auth-pam.h> 337c478bd9Sstevel@tonic-gate#include <auth2-pam.h> 347c478bd9Sstevel@tonic-gate#include <authfd.h> 357c478bd9Sstevel@tonic-gate#include <authfile.h> 367c478bd9Sstevel@tonic-gate#include <auth-options.h> 377c478bd9Sstevel@tonic-gate#include <base64.h> 387c478bd9Sstevel@tonic-gate#include <bindresvport.h> 397c478bd9Sstevel@tonic-gate#include <bsd-arc4random.h> 407c478bd9Sstevel@tonic-gate#include <bsd-cray.h> 417c478bd9Sstevel@tonic-gate#include <bsd-cygwin_util.h> 427c478bd9Sstevel@tonic-gate#include <bsd-getpeereid.h> 437c478bd9Sstevel@tonic-gate#include <bsd-misc.h> 447c478bd9Sstevel@tonic-gate#include <bsd-snprintf.h> 457c478bd9Sstevel@tonic-gate#include <bsd-waitpid.h> 467c478bd9Sstevel@tonic-gate#include <bufaux.h> 477c478bd9Sstevel@tonic-gate#include <buffer.h> 487c478bd9Sstevel@tonic-gate#include <canohost.h> 497c478bd9Sstevel@tonic-gate#include <channels.h> 507c478bd9Sstevel@tonic-gate#include <cipher.h> 517c478bd9Sstevel@tonic-gate#include <clientloop.h> 527c478bd9Sstevel@tonic-gate#include <compat.h> 537c478bd9Sstevel@tonic-gate#include <compress.h> 547c478bd9Sstevel@tonic-gate#include <config.h> 557c478bd9Sstevel@tonic-gate#include <crc32.h> 567c478bd9Sstevel@tonic-gate#include <deattack.h> 577c478bd9Sstevel@tonic-gate#include <defines.h> 587c478bd9Sstevel@tonic-gate#include <dh.h> 597c478bd9Sstevel@tonic-gate#include <dirname.h> 607c478bd9Sstevel@tonic-gate#include <dispatch.h> 617c478bd9Sstevel@tonic-gate#include <entropy.h> 627c478bd9Sstevel@tonic-gate#include <fake-gai-errnos.h> 637c478bd9Sstevel@tonic-gate#include <fake-getaddrinfo.h> 647c478bd9Sstevel@tonic-gate#include <fake-getnameinfo.h> 657c478bd9Sstevel@tonic-gate#include <fake-socket.h> 667c478bd9Sstevel@tonic-gate#include <g11n.h> 677c478bd9Sstevel@tonic-gate#include <getcwd.h> 687c478bd9Sstevel@tonic-gate#include <getgrouplist.h> 697c478bd9Sstevel@tonic-gate#include <getopt.h> 707c478bd9Sstevel@tonic-gate#include <getput.h> 717c478bd9Sstevel@tonic-gate#include <glob.h> 727c478bd9Sstevel@tonic-gate#include <groupaccess.h> 737c478bd9Sstevel@tonic-gate#include <hostfile.h> 747c478bd9Sstevel@tonic-gate#include <inet_ntoa.h> 757c478bd9Sstevel@tonic-gate#include <inet_ntop.h> 767c478bd9Sstevel@tonic-gate#include <kex.h> 777c478bd9Sstevel@tonic-gate#include <key.h> 787c478bd9Sstevel@tonic-gate#include <log.h> 797c478bd9Sstevel@tonic-gate#include <loginrec.h> 807c478bd9Sstevel@tonic-gate#include <mac.h> 817c478bd9Sstevel@tonic-gate#include <match.h> 827c478bd9Sstevel@tonic-gate#include <misc.h> 837c478bd9Sstevel@tonic-gate#include <mktemp.h> 847c478bd9Sstevel@tonic-gate#include <mpaux.h> 857c478bd9Sstevel@tonic-gate#include <msg.h> 867c478bd9Sstevel@tonic-gate#include <myproposal.h> 877c478bd9Sstevel@tonic-gate#include <openbsd-compat.h> 887c478bd9Sstevel@tonic-gate#include <packet.h> 897c478bd9Sstevel@tonic-gate#include <pathnames.h> 907c478bd9Sstevel@tonic-gate#include <port-aix.h> 917c478bd9Sstevel@tonic-gate#include <port-irix.h> 927c478bd9Sstevel@tonic-gate#include <proxy-io.h> 937c478bd9Sstevel@tonic-gate#include <readconf.h> 947c478bd9Sstevel@tonic-gate#include <readpass.h> 957c478bd9Sstevel@tonic-gate#include <readpassphrase.h> 967c478bd9Sstevel@tonic-gate#include <realpath.h> 977c478bd9Sstevel@tonic-gate#include <rresvport.h> 987c478bd9Sstevel@tonic-gate#include <rsa.h> 997c478bd9Sstevel@tonic-gate#include <servconf.h> 1007c478bd9Sstevel@tonic-gate#include <serverloop.h> 1017c478bd9Sstevel@tonic-gate#include <session.h> 1027c478bd9Sstevel@tonic-gate#include <setproctitle.h> 1037c478bd9Sstevel@tonic-gate#include <sftp-common.h> 1047c478bd9Sstevel@tonic-gate#include <sftp.h> 1057c478bd9Sstevel@tonic-gate#include <sftp-client.h> 1067c478bd9Sstevel@tonic-gate#include <sigact.h> 1077c478bd9Sstevel@tonic-gate#include <ssh1.h> 1087c478bd9Sstevel@tonic-gate#include <ssh2.h> 1097c478bd9Sstevel@tonic-gate#include <sshconnect.h> 1107c478bd9Sstevel@tonic-gate#include <ssh-dss.h> 1117c478bd9Sstevel@tonic-gate#include <sshlogin.h> 1127c478bd9Sstevel@tonic-gate#include <sshpty.h> 1137c478bd9Sstevel@tonic-gate#include <ssh-rsa.h> 1147c478bd9Sstevel@tonic-gate#include <sshtty.h> 1157c478bd9Sstevel@tonic-gate#include <strlcat.h> 1167c478bd9Sstevel@tonic-gate#include <strlcpy.h> 1177c478bd9Sstevel@tonic-gate#include <strmode.h> 1187c478bd9Sstevel@tonic-gate#include <sys-queue.h> 1197c478bd9Sstevel@tonic-gate#include <sys-tree.h> 1207c478bd9Sstevel@tonic-gate#include <tildexpand.h> 1217c478bd9Sstevel@tonic-gate#include <uidswap.h> 1227c478bd9Sstevel@tonic-gate#include <uuencode.h> 1237c478bd9Sstevel@tonic-gate#include <version.h> 1247c478bd9Sstevel@tonic-gate#include <xlist.h> 1257c478bd9Sstevel@tonic-gate#include <xmalloc.h> 1267c478bd9Sstevel@tonic-gate#include <xmmap.h> 1277c478bd9Sstevel@tonic-gate 1287c478bd9Sstevel@tonic-gateextern uid_t original_real_uid; 1297c478bd9Sstevel@tonic-gateextern char *__progname; 1307c478bd9Sstevel@tonic-gate 131