summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-07-24 14:13:33 +1000
committerDamien Miller <djm@mindrot.org>2006-07-24 14:13:33 +1000
commite3476ed03bf9beca3ad0e5447dc9422a546d19ec (patch)
tree55a94418a7968a68dec191b03225680e7ce21c58
parent5598b4f125f07ec0865ec56cddeb80c44e3d2d6a (diff)
- stevesk@cvs.openbsd.org 2006/07/22 20:48:23
[atomicio.c auth-options.c auth-passwd.c auth-rhosts.c auth-rsa.c] [auth.c auth1.c auth2-chall.c auth2-hostbased.c auth2-passwd.c auth2.c] [authfd.c authfile.c bufaux.c bufbn.c buffer.c canohost.c channels.c] [cipher-3des1.c cipher-bf1.c cipher-ctr.c cipher.c clientloop.c] [compat.c deattack.c dh.c dns.c gss-genr.c gss-serv.c hostfile.c] [includes.h kex.c kexdhc.c kexdhs.c kexgexc.c kexgexs.c key.c log.c] [mac.c match.c md-sha256.c misc.c moduli.c monitor.c monitor_fdpass.c] [monitor_mm.c monitor_wrap.c msg.c nchan.c packet.c rsa.c] [progressmeter.c readconf.c readpass.c scp.c servconf.c serverloop.c] [session.c sftp-client.c sftp-common.c sftp-glob.c sftp-server.c sftp.c] [ssh-add.c ssh-agent.c ssh-dss.c ssh-keygen.c ssh-keyscan.c] [ssh-keysign.c ssh-rsa.c ssh.c sshconnect.c sshconnect1.c sshconnect2.c] [sshd.c sshlogin.c sshpty.c ttymodes.c uidswap.c xmalloc.c] move #include <string.h> out of includes.h
-rw-r--r--ChangeLog17
-rw-r--r--atomicio.c3
-rw-r--r--auth-options.c3
-rw-r--r--auth-passwd.c3
-rw-r--r--auth-rhosts.c3
-rw-r--r--auth-rsa.c3
-rw-r--r--auth.c3
-rw-r--r--auth1.c3
-rw-r--r--auth2-chall.c4
-rw-r--r--auth2-hostbased.c3
-rw-r--r--auth2-passwd.c4
-rw-r--r--auth2.c3
-rw-r--r--authfd.c3
-rw-r--r--authfile.c3
-rw-r--r--bufaux.c5
-rw-r--r--bufbn.c5
-rw-r--r--buffer.c4
-rw-r--r--canohost.c3
-rw-r--r--channels.c3
-rw-r--r--cipher-3des1.c5
-rw-r--r--cipher-bf1.c5
-rw-r--r--cipher-ctr.c4
-rw-r--r--cipher.c8
-rw-r--r--clientloop.c3
-rw-r--r--compat.c4
-rw-r--r--deattack.c4
-rw-r--r--dh.c4
-rw-r--r--dns.c3
-rw-r--r--gss-genr.c4
-rw-r--r--gss-serv.c4
-rw-r--r--hostfile.c3
-rw-r--r--includes.h3
-rw-r--r--kex.c4
-rw-r--r--kexdhc.c4
-rw-r--r--kexdhs.c4
-rw-r--r--kexgexc.c4
-rw-r--r--kexgexs.c4
-rw-r--r--key.c4
-rw-r--r--log.c3
-rw-r--r--mac.c4
-rw-r--r--match.c3
-rw-r--r--md-sha256.c2
-rw-r--r--misc.c3
-rw-r--r--moduli.c3
-rw-r--r--monitor.c3
-rw-r--r--monitor_fdpass.c3
-rw-r--r--monitor_mm.c3
-rw-r--r--monitor_wrap.c3
-rw-r--r--msg.c3
-rw-r--r--nchan.c3
-rw-r--r--packet.c3
-rw-r--r--progressmeter.c3
-rw-r--r--readconf.c3
-rw-r--r--readpass.c3
-rw-r--r--rsa.c4
-rw-r--r--scp.c3
-rw-r--r--servconf.c3
-rw-r--r--serverloop.c3
-rw-r--r--session.c3
-rw-r--r--sftp-client.c3
-rw-r--r--sftp-common.c3
-rw-r--r--sftp-glob.c5
-rw-r--r--sftp-server.c5
-rw-r--r--sftp.c3
-rw-r--r--ssh-add.c3
-rw-r--r--ssh-agent.c9
-rw-r--r--ssh-dss.c4
-rw-r--r--ssh-keygen.c3
-rw-r--r--ssh-keyscan.c8
-rw-r--r--ssh-keysign.c3
-rw-r--r--ssh-rsa.c4
-rw-r--r--ssh.c3
-rw-r--r--sshconnect.c3
-rw-r--r--sshconnect1.c4
-rw-r--r--sshconnect2.c3
-rw-r--r--sshd.c3
-rw-r--r--sshlogin.c3
-rw-r--r--sshpty.c3
-rw-r--r--ttymodes.c3
-rw-r--r--uidswap.c3
-rw-r--r--xmalloc.c3
81 files changed, 213 insertions, 91 deletions
diff --git a/ChangeLog b/ChangeLog
index 636d309b..000c5782 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -80,6 +80,21 @@
[includes.h moduli.c progressmeter.c scp.c sftp-common.c]
[sftp-server.c ssh-agent.c sshlogin.c]
move #include <time.h> out of includes.h
+ - stevesk@cvs.openbsd.org 2006/07/22 20:48:23
+ [atomicio.c auth-options.c auth-passwd.c auth-rhosts.c auth-rsa.c]
+ [auth.c auth1.c auth2-chall.c auth2-hostbased.c auth2-passwd.c auth2.c]
+ [authfd.c authfile.c bufaux.c bufbn.c buffer.c canohost.c channels.c]
+ [cipher-3des1.c cipher-bf1.c cipher-ctr.c cipher.c clientloop.c]
+ [compat.c deattack.c dh.c dns.c gss-genr.c gss-serv.c hostfile.c]
+ [includes.h kex.c kexdhc.c kexdhs.c kexgexc.c kexgexs.c key.c log.c]
+ [mac.c match.c md-sha256.c misc.c moduli.c monitor.c monitor_fdpass.c]
+ [monitor_mm.c monitor_wrap.c msg.c nchan.c packet.c rsa.c]
+ [progressmeter.c readconf.c readpass.c scp.c servconf.c serverloop.c]
+ [session.c sftp-client.c sftp-common.c sftp-glob.c sftp-server.c sftp.c]
+ [ssh-add.c ssh-agent.c ssh-dss.c ssh-keygen.c ssh-keyscan.c]
+ [ssh-keysign.c ssh-rsa.c ssh.c sshconnect.c sshconnect1.c sshconnect2.c]
+ [sshd.c sshlogin.c sshpty.c ttymodes.c uidswap.c xmalloc.c]
+ move #include <string.h> out of includes.h
20060713
- (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
@@ -4998,4 +5013,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
-$Id: ChangeLog,v 1.4427 2006/07/24 04:09:40 djm Exp $
+$Id: ChangeLog,v 1.4428 2006/07/24 04:13:33 djm Exp $
diff --git a/atomicio.c b/atomicio.c
index bf1c0fd1..009ce1d1 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomicio.c,v 1.20 2006/07/11 20:07:25 stevesk Exp $ */
+/* $OpenBSD: atomicio.c,v 1.21 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2006 Damien Miller. All rights reserved.
* Copyright (c) 2005 Anil Madhavapeddy. All rights reserved.
@@ -29,6 +29,7 @@
#include "includes.h"
#include <errno.h>
+#include <string.h>
#include "atomicio.h"
diff --git a/auth-options.c b/auth-options.c
index 7e6bfeb4..33c62641 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-options.c,v 1.38 2006/07/17 12:02:24 dtucker Exp $ */
+/* $OpenBSD: auth-options.c,v 1.39 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -18,6 +18,7 @@
# include <netdb.h>
#endif
#include <pwd.h>
+#include <string.h>
#include "xmalloc.h"
#include "match.h"
diff --git a/auth-passwd.c b/auth-passwd.c
index 3cf86dcb..e5edc933 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-passwd.c,v 1.37 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: auth-passwd.c,v 1.38 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -41,6 +41,7 @@
#include <sys/types.h>
#include <pwd.h>
+#include <string.h>
#include "packet.h"
#include "buffer.h"
diff --git a/auth-rhosts.c b/auth-rhosts.c
index d50ea3a0..c14604dc 100644
--- a/auth-rhosts.c
+++ b/auth-rhosts.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-rhosts.c,v 1.38 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: auth-rhosts.c,v 1.39 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -23,6 +23,7 @@
# include <netgroup.h>
#endif
#include <pwd.h>
+#include <string.h>
#include "packet.h"
#include "uidswap.h"
diff --git a/auth-rsa.c b/auth-rsa.c
index 86759764..65c77805 100644
--- a/auth-rsa.c
+++ b/auth-rsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-rsa.c,v 1.68 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: auth-rsa.c,v 1.69 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -23,6 +23,7 @@
#include <openssl/md5.h>
#include <pwd.h>
+#include <string.h>
#include "rsa.h"
#include "packet.h"
diff --git a/auth.c b/auth.c
index 3bca8dc2..0f1d530e 100644
--- a/auth.c
+++ b/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.71 2006/07/12 11:34:58 dtucker Exp $ */
+/* $OpenBSD: auth.c,v 1.72 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -43,6 +43,7 @@
#include <libgen.h>
#endif
#include <stdarg.h>
+#include <string.h>
#include "xmalloc.h"
#include "match.h"
diff --git a/auth1.c b/auth1.c
index 08929188..034010fd 100644
--- a/auth1.c
+++ b/auth1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth1.c,v 1.67 2006/07/20 15:26:14 stevesk Exp $ */
+/* $OpenBSD: auth1.c,v 1.68 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -14,6 +14,7 @@
#include <sys/types.h>
+#include <string.h>
#include <unistd.h>
#include "xmalloc.h"
diff --git a/auth2-chall.c b/auth2-chall.c
index 09412aa4..ad6b7233 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-chall.c,v 1.27 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: auth2-chall.c,v 1.28 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2001 Per Allansson. All rights reserved.
@@ -25,6 +25,8 @@
*/
#include "includes.h"
+#include <string.h>
+
#include "ssh2.h"
#include "auth.h"
#include "buffer.h"
diff --git a/auth2-hostbased.c b/auth2-hostbased.c
index 56bf0be1..5cb617e1 100644
--- a/auth2-hostbased.c
+++ b/auth2-hostbased.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-hostbased.c,v 1.9 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: auth2-hostbased.c,v 1.10 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <pwd.h>
+#include <string.h>
#include "ssh2.h"
#include "xmalloc.h"
diff --git a/auth2-passwd.c b/auth2-passwd.c
index a1e77c41..a1b65da5 100644
--- a/auth2-passwd.c
+++ b/auth2-passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-passwd.c,v 1.7 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: auth2-passwd.c,v 1.8 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -25,6 +25,8 @@
#include "includes.h"
+#include <string.h>
+
#include "xmalloc.h"
#include "packet.h"
#include "log.h"
diff --git a/auth2.c b/auth2.c
index ad57c64e..83d5224c 100644
--- a/auth2.c
+++ b/auth2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2.c,v 1.111 2006/07/06 16:03:53 stevesk Exp $ */
+/* $OpenBSD: auth2.c,v 1.112 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <pwd.h>
+#include <string.h>
#include "ssh2.h"
#include "xmalloc.h"
diff --git a/authfd.c b/authfd.c
index f8b7ed71..52766bcd 100644
--- a/authfd.c
+++ b/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.77 2006/07/17 01:31:09 stevesk Exp $ */
+/* $OpenBSD: authfd.c,v 1.78 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -44,6 +44,7 @@
#include <openssl/evp.h>
#include <fcntl.h>
+#include <string.h>
#include <unistd.h>
#include "ssh.h"
diff --git a/authfile.c b/authfile.c
index 53397ea5..8421665b 100644
--- a/authfile.c
+++ b/authfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.70 2006/07/17 01:31:09 stevesk Exp $ */
+/* $OpenBSD: authfile.c,v 1.71 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -47,6 +47,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <string.h>
#include <unistd.h>
#include "cipher.h"
diff --git a/bufaux.c b/bufaux.c
index 4c9cb662..a384cc68 100644
--- a/bufaux.c
+++ b/bufaux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bufaux.c,v 1.42 2006/04/18 10:44:28 dtucker Exp $ */
+/* $OpenBSD: bufaux.c,v 1.43 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -40,6 +40,9 @@
#include "includes.h"
#include <openssl/bn.h>
+
+#include <string.h>
+
#include "bufaux.h"
#include "xmalloc.h"
#include "log.h"
diff --git a/bufbn.c b/bufbn.c
index 56f4f6d5..aa42ea62 100644
--- a/bufbn.c
+++ b/bufbn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bufbn.c,v 1.1 2006/04/18 10:44:28 dtucker Exp $*/
+/* $OpenBSD: bufbn.c,v 1.2 2006/07/22 20:48:22 stevesk Exp $*/
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -40,6 +40,9 @@
#include "includes.h"
#include <openssl/bn.h>
+
+#include <string.h>
+
#include "bufaux.h"
#include "xmalloc.h"
#include "log.h"
diff --git a/buffer.c b/buffer.c
index ba718daf..8c9f534f 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.27 2006/04/16 00:48:52 djm Exp $ */
+/* $OpenBSD: buffer.c,v 1.28 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -14,6 +14,8 @@
#include "includes.h"
+#include <string.h>
+
#include "xmalloc.h"
#include "buffer.h"
#include "log.h"
diff --git a/canohost.c b/canohost.c
index da5131de..97b5a78f 100644
--- a/canohost.c
+++ b/canohost.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: canohost.c,v 1.57 2006/07/12 22:28:51 stevesk Exp $ */
+/* $OpenBSD: canohost.c,v 1.58 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -24,6 +24,7 @@
#if defined(HAVE_NETDB_H)
# include <netdb.h>
#endif
+#include <string.h>
#include "packet.h"
#include "xmalloc.h"
diff --git a/channels.c b/channels.c
index e44a2ab4..8cf4242f 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.259 2006/07/21 21:13:30 stevesk Exp $ */
+/* $OpenBSD: channels.c,v 1.260 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -53,6 +53,7 @@
#if defined(HAVE_NETDB_H)
# include <netdb.h>
#endif
+#include <string.h>
#include <termios.h>
#include <unistd.h>
diff --git a/cipher-3des1.c b/cipher-3des1.c
index c2c0bf81..2e8735d5 100644
--- a/cipher-3des1.c
+++ b/cipher-3des1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher-3des1.c,v 1.4 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: cipher-3des1.c,v 1.5 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2003 Markus Friedl. All rights reserved.
*
@@ -26,6 +26,9 @@
#include "includes.h"
#include <openssl/evp.h>
+
+#include <string.h>
+
#include "xmalloc.h"
#include "log.h"
diff --git a/cipher-bf1.c b/cipher-bf1.c
index b6aa0152..95b4e5e9 100644
--- a/cipher-bf1.c
+++ b/cipher-bf1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher-bf1.c,v 1.3 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: cipher-bf1.c,v 1.4 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2003 Markus Friedl. All rights reserved.
*
@@ -26,6 +26,9 @@
#include "includes.h"
#include <openssl/evp.h>
+
+#include <string.h>
+
#include "xmalloc.h"
#include "log.h"
diff --git a/cipher-ctr.c b/cipher-ctr.c
index be82fd3a..105d0bd5 100644
--- a/cipher-ctr.c
+++ b/cipher-ctr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher-ctr.c,v 1.8 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: cipher-ctr.c,v 1.9 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Copyright (c) 2003 Markus Friedl <markus@openbsd.org>
*
@@ -16,6 +16,8 @@
*/
#include "includes.h"
+#include <string.h>
+
#include <openssl/evp.h>
#include "log.h"
diff --git a/cipher.c b/cipher.c
index c4296389..20fa59c6 100644
--- a/cipher.c
+++ b/cipher.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher.c,v 1.79 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: cipher.c,v 1.80 2006/07/22 20:48:22 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -37,12 +37,14 @@
#include "includes.h"
+#include <openssl/md5.h>
+
+#include <string.h>
+
#include "xmalloc.h"
#include "log.h"
#include "cipher.h"
-#include <openssl/md5.h>
-
/* compatibility with old or broken OpenSSL versions */
#include "openbsd-compat/openssl-compat.h"
diff --git a/clientloop.c b/clientloop.c
index 9398dc98..0c700dbd 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@