xref: /onnv-gate/usr/src/cmd/ssh/libssh/common/llib-lssh (revision 10547:1a61a72b11d5)
10Sstevel@tonic-gate/* LINTLIBRARY */
20Sstevel@tonic-gate/* PROTOLIB1 */
30Sstevel@tonic-gate
40Sstevel@tonic-gate/*
50Sstevel@tonic-gate * CDDL HEADER START
60Sstevel@tonic-gate *
70Sstevel@tonic-gate * The contents of this file are subject to the terms of the
85087Sjp161948 * Common Development and Distribution License (the "License").
95087Sjp161948 * You may not use this file except in compliance with the License.
100Sstevel@tonic-gate *
110Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
120Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
130Sstevel@tonic-gate * See the License for the specific language governing permissions
140Sstevel@tonic-gate * and limitations under the License.
150Sstevel@tonic-gate *
160Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
170Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
180Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
190Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
200Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
210Sstevel@tonic-gate *
220Sstevel@tonic-gate * CDDL HEADER END
230Sstevel@tonic-gate *
24*10547SVladimir.Kotal@Sun.COM * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate * Use is subject to license terms.
260Sstevel@tonic-gate */
270Sstevel@tonic-gate
280Sstevel@tonic-gate#include <includes.h>
290Sstevel@tonic-gate#include <ssh.h>
300Sstevel@tonic-gate#include <atomicio.h>
310Sstevel@tonic-gate#include <auth.h>
320Sstevel@tonic-gate#include <auth-pam.h>
330Sstevel@tonic-gate#include <auth2-pam.h>
340Sstevel@tonic-gate#include <authfd.h>
350Sstevel@tonic-gate#include <authfile.h>
360Sstevel@tonic-gate#include <auth-options.h>
370Sstevel@tonic-gate#include <base64.h>
380Sstevel@tonic-gate#include <bindresvport.h>
390Sstevel@tonic-gate#include <bsd-arc4random.h>
400Sstevel@tonic-gate#include <bsd-cray.h>
410Sstevel@tonic-gate#include <bsd-cygwin_util.h>
420Sstevel@tonic-gate#include <bsd-getpeereid.h>
430Sstevel@tonic-gate#include <bsd-misc.h>
440Sstevel@tonic-gate#include <bsd-snprintf.h>
450Sstevel@tonic-gate#include <bsd-waitpid.h>
460Sstevel@tonic-gate#include <bufaux.h>
470Sstevel@tonic-gate#include <buffer.h>
480Sstevel@tonic-gate#include <canohost.h>
490Sstevel@tonic-gate#include <channels.h>
500Sstevel@tonic-gate#include <cipher.h>
510Sstevel@tonic-gate#include <clientloop.h>
520Sstevel@tonic-gate#include <compat.h>
530Sstevel@tonic-gate#include <compress.h>
540Sstevel@tonic-gate#include <config.h>
550Sstevel@tonic-gate#include <crc32.h>
560Sstevel@tonic-gate#include <deattack.h>
570Sstevel@tonic-gate#include <defines.h>
580Sstevel@tonic-gate#include <dh.h>
590Sstevel@tonic-gate#include <dirname.h>
600Sstevel@tonic-gate#include <dispatch.h>
610Sstevel@tonic-gate#include <entropy.h>
620Sstevel@tonic-gate#include <fake-gai-errnos.h>
630Sstevel@tonic-gate#include <fake-getaddrinfo.h>
640Sstevel@tonic-gate#include <fake-getnameinfo.h>
650Sstevel@tonic-gate#include <fake-socket.h>
660Sstevel@tonic-gate#include <g11n.h>
670Sstevel@tonic-gate#include <getcwd.h>
680Sstevel@tonic-gate#include <getgrouplist.h>
690Sstevel@tonic-gate#include <getopt.h>
700Sstevel@tonic-gate#include <getput.h>
710Sstevel@tonic-gate#include <glob.h>
720Sstevel@tonic-gate#include <groupaccess.h>
730Sstevel@tonic-gate#include <hostfile.h>
740Sstevel@tonic-gate#include <inet_ntoa.h>
750Sstevel@tonic-gate#include <inet_ntop.h>
760Sstevel@tonic-gate#include <kex.h>
770Sstevel@tonic-gate#include <key.h>
780Sstevel@tonic-gate#include <log.h>
790Sstevel@tonic-gate#include <loginrec.h>
800Sstevel@tonic-gate#include <mac.h>
810Sstevel@tonic-gate#include <match.h>
820Sstevel@tonic-gate#include <misc.h>
830Sstevel@tonic-gate#include <mktemp.h>
840Sstevel@tonic-gate#include <mpaux.h>
850Sstevel@tonic-gate#include <msg.h>
860Sstevel@tonic-gate#include <myproposal.h>
870Sstevel@tonic-gate#include <openbsd-compat.h>
880Sstevel@tonic-gate#include <packet.h>
890Sstevel@tonic-gate#include <pathnames.h>
900Sstevel@tonic-gate#include <port-aix.h>
910Sstevel@tonic-gate#include <port-irix.h>
920Sstevel@tonic-gate#include <proxy-io.h>
930Sstevel@tonic-gate#include <readconf.h>
940Sstevel@tonic-gate#include <readpass.h>
950Sstevel@tonic-gate#include <readpassphrase.h>
960Sstevel@tonic-gate#include <realpath.h>
970Sstevel@tonic-gate#include <rresvport.h>
980Sstevel@tonic-gate#include <rsa.h>
990Sstevel@tonic-gate#include <servconf.h>
1000Sstevel@tonic-gate#include <serverloop.h>
1010Sstevel@tonic-gate#include <session.h>
1020Sstevel@tonic-gate#include <setproctitle.h>
1030Sstevel@tonic-gate#include <sftp-common.h>
1040Sstevel@tonic-gate#include <sftp.h>
1050Sstevel@tonic-gate#include <sftp-client.h>
1060Sstevel@tonic-gate#include <sigact.h>
1070Sstevel@tonic-gate#include <ssh1.h>
1080Sstevel@tonic-gate#include <ssh2.h>
1090Sstevel@tonic-gate#include <sshconnect.h>
1100Sstevel@tonic-gate#include <ssh-dss.h>
1110Sstevel@tonic-gate#include <sshlogin.h>
1120Sstevel@tonic-gate#include <sshpty.h>
1130Sstevel@tonic-gate#include <ssh-rsa.h>
1140Sstevel@tonic-gate#include <sshtty.h>
1150Sstevel@tonic-gate#include <strlcat.h>
1160Sstevel@tonic-gate#include <strlcpy.h>
1170Sstevel@tonic-gate#include <strmode.h>
1180Sstevel@tonic-gate#include <sys-queue.h>
1190Sstevel@tonic-gate#include <sys-tree.h>
1200Sstevel@tonic-gate#include <tildexpand.h>
1210Sstevel@tonic-gate#include <uidswap.h>
1220Sstevel@tonic-gate#include <uuencode.h>
1230Sstevel@tonic-gate#include <version.h>
1240Sstevel@tonic-gate#include <xlist.h>
1250Sstevel@tonic-gate#include <xmalloc.h>
1260Sstevel@tonic-gate#include <xmmap.h>
1270Sstevel@tonic-gate
1280Sstevel@tonic-gateextern uid_t original_real_uid;
1290Sstevel@tonic-gateextern char *__progname;
1300Sstevel@tonic-gate
131