mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
- NetBSD patch from David Rankin <drankin@bohemians.lexington.ky.us> and
Christos Zoulas <christos@netbsd.org>
This commit is contained in:
parent
eab2ce0236
commit
ee1c0b3d3b
2
CREDITS
2
CREDITS
@ -4,7 +4,7 @@ Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos,
|
|||||||
Theo de Raadt, and Dug Song - Creators of OpenSSH
|
Theo de Raadt, and Dug Song - Creators of OpenSSH
|
||||||
|
|
||||||
Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> - Bugfixes
|
Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> - Bugfixes
|
||||||
Andre Lucas <andre.lucas@dial.pipex.com> - Many portability fixes
|
Andre Lucas <andre.lucas@dial.pipex.com> - build, login and many other fixes
|
||||||
Ben Taylor <bent@clark.net> - Solaris debugging and fixes
|
Ben Taylor <bent@clark.net> - Solaris debugging and fixes
|
||||||
Chip Salzenberg <chip@valinux.com> - Assorted patches
|
Chip Salzenberg <chip@valinux.com> - Assorted patches
|
||||||
Chris Saia <csaia@wtower.com> - SuSE packaging
|
Chris Saia <csaia@wtower.com> - SuSE packaging
|
||||||
|
@ -6,15 +6,19 @@
|
|||||||
- [sshconnect.c]
|
- [sshconnect.c]
|
||||||
- disable agent fwding for proto 1.3, remove abuse of auth-rsa flags.
|
- disable agent fwding for proto 1.3, remove abuse of auth-rsa flags.
|
||||||
- destroy keys earlier
|
- destroy keys earlier
|
||||||
- split key exchange (kex) and user authentication (user-auth), ok: provos@
|
- split key exchange (kex) and user authentication (user-auth),
|
||||||
|
ok: provos@
|
||||||
- [sshd.c]
|
- [sshd.c]
|
||||||
- no need for poll.h; from bright@wintelcom.net
|
- no need for poll.h; from bright@wintelcom.net
|
||||||
- disable agent fwding for proto 1.3, remove abuse of auth-rsa flags.
|
- disable agent fwding for proto 1.3, remove abuse of auth-rsa flags.
|
||||||
- split key exchange (kex) and user authentication (user-auth), ok: provos@
|
- split key exchange (kex) and user authentication (user-auth),
|
||||||
|
ok: provos@
|
||||||
- Big manpage and config file cleanup from Andre Lucas
|
- Big manpage and config file cleanup from Andre Lucas
|
||||||
<andre.lucas@dial.pipex.com>
|
<andre.lucas@dial.pipex.com>
|
||||||
- Re-added latest (unmodified) OpenBSD manpages
|
- Re-added latest (unmodified) OpenBSD manpages
|
||||||
- Doc updates
|
- Doc updates
|
||||||
|
- NetBSD patch from David Rankin <drankin@bohemians.lexington.ky.us> and
|
||||||
|
Christos Zoulas <christos@netbsd.org>
|
||||||
|
|
||||||
20000119
|
20000119
|
||||||
- SCO compile fixes from Gary E. Miller <gem@rellim.com>
|
- SCO compile fixes from Gary E. Miller <gem@rellim.com>
|
||||||
|
55
configure.in
55
configure.in
@ -51,6 +51,31 @@ if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
|
|||||||
|
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
|
|
||||||
|
dnl Check for OpenSSL/SSLeay directories.
|
||||||
|
AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
|
||||||
|
for ssldir in $prefix /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local $prefix /usr/pkg ; do
|
||||||
|
if test -f "$ssldir/include/openssl/crypto.h"; then
|
||||||
|
AC_DEFINE(HAVE_OPENSSL)
|
||||||
|
GOT_SSL="yes"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if test -f "$ssldir/include/ssl/crypto.h"; then
|
||||||
|
AC_DEFINE(HAVE_SSL)
|
||||||
|
GOT_SSL="yes"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -z "$GOT_SSL" ; then
|
||||||
|
AC_MSG_ERROR([Could not find SSLeay / OpenSSL libraries, please install])
|
||||||
|
fi
|
||||||
|
AC_SUBST(ssldir)
|
||||||
|
AC_DEFINE_UNQUOTED(ssldir, "$ssldir")
|
||||||
|
if test "$ssldir" != "/usr"; then
|
||||||
|
CFLAGS="$CFLAGS -I$ssldir/include"
|
||||||
|
LDFLAGS="$LDFLAGS -L$ssldir/lib"
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($ssldir)
|
||||||
|
|
||||||
dnl Check for some target-specific stuff
|
dnl Check for some target-specific stuff
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-aix*)
|
*-*-aix*)
|
||||||
@ -87,6 +112,11 @@ case "$host" in
|
|||||||
*-*-linux*)
|
*-*-linux*)
|
||||||
no_dev_ptmx=1
|
no_dev_ptmx=1
|
||||||
;;
|
;;
|
||||||
|
*-*-netbsd*)
|
||||||
|
if test "$GOT_SSL" = "yes"; then
|
||||||
|
LDFLAGS="$LDFLAGS -R$ssldir/lib"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*-*-solaris*)
|
*-*-solaris*)
|
||||||
AC_DEFINE(USE_UTMPX)
|
AC_DEFINE(USE_UTMPX)
|
||||||
;;
|
;;
|
||||||
@ -95,31 +125,6 @@ case "$host" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
dnl Check for OpenSSL/SSLeay directories.
|
|
||||||
AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
|
|
||||||
for ssldir in $prefix /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local $prefix /usr/pkg ; do
|
|
||||||
if test -f "$ssldir/include/openssl/crypto.h"; then
|
|
||||||
AC_DEFINE(HAVE_OPENSSL)
|
|
||||||
GOT_SSL="yes"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
if test -f "$ssldir/include/ssl/crypto.h"; then
|
|
||||||
AC_DEFINE(HAVE_SSL)
|
|
||||||
GOT_SSL="yes"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if test -z "$GOT_SSL" ; then
|
|
||||||
AC_MSG_ERROR([Could not find SSLeay / OpenSSL libraries, please install])
|
|
||||||
fi
|
|
||||||
AC_SUBST(ssldir)
|
|
||||||
AC_DEFINE_UNQUOTED(ssldir, "$ssldir")
|
|
||||||
if test "$ssldir" != "/usr"; then
|
|
||||||
CFLAGS="$CFLAGS -I$ssldir/include"
|
|
||||||
LDFLAGS="$LDFLAGS -L$ssldir/lib"
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT($ssldir)
|
|
||||||
|
|
||||||
dnl Check for RSAref library.
|
dnl Check for RSAref library.
|
||||||
AC_MSG_CHECKING([for RSAref library])
|
AC_MSG_CHECKING([for RSAref library])
|
||||||
saved_LIBS="$LIBS"
|
saved_LIBS="$LIBS"
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
# include <sys/cdefs.h> /* For __P() */
|
# include <sys/cdefs.h> /* For __P() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_SYSMACROS_H
|
||||||
|
# include <sys/sysmacros.h> /* For MIN, MAX, etc */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
|
|
||||||
#ifndef SHUT_RDWR
|
#ifndef SHUT_RDWR
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$Id: log-client.c,v 1.3 1999/11/24 13:26:22 damien Exp $");
|
RCSID("$Id: log-client.c,v 1.4 2000/01/20 13:18:16 damien Exp $");
|
||||||
|
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
@ -45,12 +45,12 @@ log_init(char *av0, LogLevel level, SyslogFacility ignored1, int ignored2)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MSGBUFSIZE 1024
|
#define SSH_MSGBUFSIZE 1024
|
||||||
|
|
||||||
void
|
void
|
||||||
do_log(LogLevel level, const char *fmt, va_list args)
|
do_log(LogLevel level, const char *fmt, va_list args)
|
||||||
{
|
{
|
||||||
char msgbuf[MSGBUFSIZE];
|
char msgbuf[SSH_MSGBUFSIZE];
|
||||||
|
|
||||||
if (level > log_level)
|
if (level > log_level)
|
||||||
return;
|
return;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$Id: log-server.c,v 1.5 1999/11/24 13:26:22 damien Exp $");
|
RCSID("$Id: log-server.c,v 1.6 2000/01/20 13:18:16 damien Exp $");
|
||||||
|
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
@ -97,13 +97,13 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
|
|||||||
log_on_stderr = on_stderr;
|
log_on_stderr = on_stderr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MSGBUFSIZE 1024
|
#define SSH_MSGBUFSIZE 1024
|
||||||
|
|
||||||
void
|
void
|
||||||
do_log(LogLevel level, const char *fmt, va_list args)
|
do_log(LogLevel level, const char *fmt, va_list args)
|
||||||
{
|
{
|
||||||
char msgbuf[MSGBUFSIZE];
|
char msgbuf[SSH_MSGBUFSIZE];
|
||||||
char fmtbuf[MSGBUFSIZE];
|
char fmtbuf[SSH_MSGBUFSIZE];
|
||||||
char *txt = NULL;
|
char *txt = NULL;
|
||||||
int pri = LOG_INFO;
|
int pri = LOG_INFO;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$Id: uidswap.c,v 1.3 1999/11/25 00:55:00 damien Exp $");
|
RCSID("$Id: uidswap.c,v 1.4 2000/01/20 13:18:16 damien Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "uidswap.h"
|
#include "uidswap.h"
|
||||||
@ -25,11 +25,12 @@ RCSID("$Id: uidswap.c,v 1.3 1999/11/25 00:55:00 damien Exp $");
|
|||||||
/* Lets assume that posix saved ids also work with seteuid, even though that
|
/* Lets assume that posix saved ids also work with seteuid, even though that
|
||||||
is not part of the posix specification. */
|
is not part of the posix specification. */
|
||||||
#define SAVED_IDS_WORK_WITH_SETEUID
|
#define SAVED_IDS_WORK_WITH_SETEUID
|
||||||
#endif /* _POSIX_SAVED_IDS */
|
|
||||||
|
|
||||||
/* Saved effective uid. */
|
/* Saved effective uid. */
|
||||||
static uid_t saved_euid = 0;
|
static uid_t saved_euid = 0;
|
||||||
|
|
||||||
|
#endif /* _POSIX_SAVED_IDS */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Temporarily changes to the given uid. If the effective user
|
* Temporarily changes to the given uid. If the effective user
|
||||||
* id is not root, this does nothing. This call cannot be nested.
|
* id is not root, this does nothing. This call cannot be nested.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user