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