[auth.h dispatch.c kex.h sftp-client.c]
#include <signal.h> for sig_atomic_t; need this prior to <sys/param.h>
move
+ - (djm) [acss.c auth-krb5.c auth-options.c auth-pam.c auth-shadow.c]
+ [canohost.c channels.c cipher-acss.c defines.h dns.c gss-genr.c]
+ [gss-serv-krb5.c gss-serv.c log.h loginrec.c logintest.c readconf.c]
+ [servconf.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c ssh-rand-helper.c]
+ [ssh.c sshconnect.c sshd.c openbsd-compat/bindresvport.c]
+ [openbsd-compat/bsd-arc4random.c openbsd-compat/bsd-misc.c]
+ [openbsd-compat/getrrsetbyname.c openbsd-compat/glob.c]
+ [openbsd-compat/mktemp.c openbsd-compat/port-linux.c]
+ [openbsd-compat/port-tun.c openbsd-compat/readpassphrase.c]
+ [openbsd-compat/setproctitle.c openbsd-compat/xmmap.c]
+ make the portable tree compile again - sprinkle unistd.h and string.h
+ back in. Don't redefine __unused, as it turned out to be used in
+ headers on Linux, and replace its use in auth-pam.c with ARGSUSED
20060713
- (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
*/
#include "includes.h"
+
+#include <string.h>
+
#include <openssl/evp.h>
#if !defined(EVP_CTRL_SET_ACSS_MODE) && (OPENSSL_VERSION_NUMBER >= 0x00906000L)
#ifdef KRB5
#include <errno.h>
+#include <unistd.h>
+#include <string.h>
#include <krb5.h>
extern ServerOptions options;
#include <sys/types.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#include <pwd.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
+#include <string.h>
+#include <unistd.h>
#ifdef USE_PAM
#if defined(HAVE_SECURITY_PAM_APPL_H)
fatal("PAM: authentication thread exited uncleanly");
}
+/* ARGSUSED */
static void
-pthread_exit(void *value __unused)
+pthread_exit(void *value)
{
_exit(0);
}
+/* ARGSUSED */
static int
-pthread_create(sp_pthread_t *thread, const void *attr __unused,
+pthread_create(sp_pthread_t *thread, const void *attr,
void *(*thread_start)(void *), void *arg)
{
pid_t pid;
return (kill(thread, SIGTERM));
}
+/* ARGSUSED */
static int
-pthread_join(sp_pthread_t thread, void **value __unused)
+pthread_join(sp_pthread_t thread, void **value)
{
int status;
#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
#include <shadow.h>
+#include <string.h>
#include "auth.h"
#include "buffer.h"
#include <ctype.h>
#include <errno.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#include <string.h>
#include "packet.h"
#include <arpa/inet.h>
#include <errno.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
*/
#include "includes.h"
+
#include <openssl/evp.h>
+#include <string.h>
+
#if !defined(EVP_CTRL_SET_ACSS_MODE) && (OPENSSL_VERSION_NUMBER >= 0x00907000L)
#include "acss.h"
#define INADDR_LOOPBACK ((u_long)0x7f000001)
#endif
-#ifndef __unused
-#define __unused
-#endif
-
/* Types */
/* If sys/types.h does not supply intXX_t, supply them ourselves */
/* (or die trying) */
-
#ifndef HAVE_U_INT
typedef unsigned int u_int;
#endif
#include <sys/types.h>
#include <sys/socket.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#include <string.h>
#include "xmalloc.h"
#ifdef GSSAPI
#include <string.h>
+#include <unistd.h>
#include "xmalloc.h"
#include "bufaux.h"
#ifdef GSSAPI
#ifdef KRB5
+#include <string.h>
+
#include "auth.h"
#include "xmalloc.h"
#include "log.h"
#ifdef GSSAPI
#include <string.h>
+#include <unistd.h>
#include "bufaux.h"
#include "auth.h"
#ifndef SSH_LOG_H
#define SSH_LOG_H
+#include "includes.h"
+
#include <stdarg.h>
#include <syslog.h> /* Needed for LOG_AUTHPRIV (if present) */
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
+#include <string.h>
+#include <unistd.h>
#include "ssh.h"
#include "xmalloc.h"
#include <stdio.h>
#include <string.h>
#include <pwd.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include "includes.h"
#include <errno.h>
+#include <string.h>
#define STARTPORT 600
#define ENDPORT (IPPORT_RESERVED - 1)
*/
#include "includes.h"
+
+#include <sys/types.h>
+#include <string.h>
+
#include "log.h"
#ifndef HAVE_ARC4RANDOM
#include "includes.h"
+#include <string.h>
#include <signal.h>
#include "xmalloc.h"
#ifndef HAVE_GETRRSETBYNAME
+#include <string.h>
+
#include "getrrsetbyname.h"
#if defined(HAVE_DECL_H_ERRNO) && !HAVE_DECL_H_ERRNO
#include <ctype.h>
#include <errno.h>
#include <pwd.h>
+#include <string.h>
+#include <unistd.h>
static long
get_arg_max(void)
#include <fcntl.h>
#include <ctype.h>
#include <errno.h>
+#include <unistd.h>
#if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP)
#include "includes.h"
+#include <errno.h>
+#include <string.h>
+
#ifdef WITH_SELINUX
#include "log.h"
#include "port-linux.h"
#include <errno.h>
#include <fcntl.h>
+#include <string.h>
+#include <unistd.h>
#include "log.h"
#include "misc.h"
#include <fcntl.h>
#include <readpassphrase.h>
#include <errno.h>
+#include <string.h>
+#include <unistd.h>
#ifdef TCSASOFT
# define _T_FLUSH (TCSAFLUSH|TCSASOFT)
#ifdef HAVE_SYS_PSTAT_H
#include <sys/pstat.h>
#endif
+#include <string.h>
#define SPT_NONE 0 /* don't use it at all */
#define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */
#include <sys/stat.h>
#include <errno.h>
+#include <string.h>
+#include <unistd.h>
#include "log.h"
#include <ctype.h>
#include <errno.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#ifdef HAVE_PATHS_H
# include <paths.h>
#endif
#include <openssl/bn.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#include <errno.h>
#include <stdarg.h>
#include <setjmp.h>
{
Buffer b;
Options options;
- Key *keys[2], *key;
+ Key *keys[2], *key = NULL;
struct passwd *pw;
int key_fd[2], i, found, version = 2, fd;
u_char *signature, *data;
#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
+#include <time.h>
+#include <unistd.h>
#include <openssl/rand.h>
#include <openssl/sha.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
#include <ctype.h>
#include <errno.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
#include <errno.h>
#include <fcntl.h>
-#if defined(HAVE_NETDB_H)
-# include <netdb.h>
-#endif
+#include <netdb.h>
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif