Deleted Added
full compact
sshd.c (226046) sshd.c (231584)
1/* $OpenBSD: sshd.c,v 1.385 2011/06/23 09:34:13 djm Exp $ */
1/* $OpenBSD: sshd.c,v 1.385 2011/06/23 09:34:13 djm Exp $ */
2/* $FreeBSD: head/crypto/openssh/sshd.c 226046 2011-10-05 22:08:17Z des $ */
2/* $FreeBSD: head/crypto/openssh/sshd.c 231584 2012-02-13 11:59:59Z ed $ */
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 * This program is the ssh daemon. It listens for connections from clients,
8 * and performs authentication, executes use commands or shell, and forwards
9 * information to/from the application to the user client over an encrypted
10 * connection. This can also handle forwarding of X11, TCP/IP, and

--- 28 unchanged lines hidden (view full) ---

39 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
43 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44 */
45
46#include "includes.h"
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 * This program is the ssh daemon. It listens for connections from clients,
8 * and performs authentication, executes use commands or shell, and forwards
9 * information to/from the application to the user client over an encrypted
10 * connection. This can also handle forwarding of X11, TCP/IP, and

--- 28 unchanged lines hidden (view full) ---

39 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
43 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44 */
45
46#include "includes.h"
47__RCSID("$FreeBSD: head/crypto/openssh/sshd.c 226046 2011-10-05 22:08:17Z des $");
47__RCSID("$FreeBSD: head/crypto/openssh/sshd.c 231584 2012-02-13 11:59:59Z ed $");
48
49#include <sys/types.h>
50#include <sys/ioctl.h>
51#include <sys/mman.h>
52#include <sys/socket.h>
53#ifdef HAVE_SYS_STAT_H
54# include <sys/stat.h>
55#endif

--- 1855 unchanged lines hidden (view full) ---

1911 signal(SIGTERM, SIG_DFL);
1912 signal(SIGQUIT, SIG_DFL);
1913 signal(SIGCHLD, SIG_DFL);
1914 signal(SIGINT, SIG_DFL);
1915
1916#ifdef __FreeBSD__
1917 /*
1918 * Initialize the resolver. This may not happen automatically
48
49#include <sys/types.h>
50#include <sys/ioctl.h>
51#include <sys/mman.h>
52#include <sys/socket.h>
53#ifdef HAVE_SYS_STAT_H
54# include <sys/stat.h>
55#endif

--- 1855 unchanged lines hidden (view full) ---

1911 signal(SIGTERM, SIG_DFL);
1912 signal(SIGQUIT, SIG_DFL);
1913 signal(SIGCHLD, SIG_DFL);
1914 signal(SIGINT, SIG_DFL);
1915
1916#ifdef __FreeBSD__
1917 /*
1918 * Initialize the resolver. This may not happen automatically
1919 * before privsep chroot().
1919 * before privsep chroot().
1920 */
1921 if ((_res.options & RES_INIT) == 0) {
1920 */
1921 if ((_res.options & RES_INIT) == 0) {
1922 debug("res_init()");
1923 res_init();
1922 debug("res_init()");
1923 res_init();
1924 }
1925#ifdef GSSAPI
1926 /*
1927 * Force GSS-API to parse its configuration and load any
1928 * mechanism plugins.
1929 */
1930 {
1931 gss_OID_set mechs;

--- 495 unchanged lines hidden ---
1924 }
1925#ifdef GSSAPI
1926 /*
1927 * Force GSS-API to parse its configuration and load any
1928 * mechanism plugins.
1929 */
1930 {
1931 gss_OID_set mechs;

--- 495 unchanged lines hidden ---