[openssh-commits] [openssh] 01/06: upstream: remove unneeded includes; ok dtucker@
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Feb 16 12:20:33 AEDT 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 07c6413e7bf08b7bfc6fd543eded9da68898e230
Author: jsg at openbsd.org <jsg at openbsd.org>
AuthorDate: Sat Feb 14 00:18:34 2026 +0000
upstream: remove unneeded includes; ok dtucker@
OpenBSD-Commit-ID: bba6e85492276c30c7a9d27dfd3c4c55fa033335
---
addrmatch.c | 5 +----
authfd.c | 6 +-----
authfile.c | 8 +-------
canohost.c | 3 +--
channels.c | 5 +----
cipher-chachapoly-libcrypto.c | 4 +---
cipher.c | 3 +--
clientloop.c | 8 +-------
compat.c | 3 +--
dns.c | 3 +--
hmac.c | 3 +--
kex-names.c | 4 +---
kex.c | 4 +---
kexdh.c | 7 ++-----
kexecdh.c | 4 +---
kexgex.c | 2 +-
kexgexc.c | 3 +--
krl.c | 5 +----
log.c | 3 +--
msg.c | 5 +----
mux.c | 10 +---------
nchan.c | 4 +---
packet.c | 6 +-----
readconf.c | 5 +----
readpass.c | 3 +--
ssh-ecdsa.c | 6 ++----
ssh-ed25519-sk.c | 4 +---
ssh-ed25519.c | 3 +--
ssh-pkcs11.c | 3 +--
ssh-rsa.c | 6 ++----
ssh-sk-client.c | 4 +---
ssh.c | 12 +-----------
sshconnect.c | 9 +--------
sshconnect2.c | 5 +----
ttymodes.c | 3 +--
umac.c | 3 +--
36 files changed, 39 insertions(+), 135 deletions(-)
diff --git a/addrmatch.c b/addrmatch.c
index 4dd2f285b..53a19f71b 100644
--- a/addrmatch.c
+++ b/addrmatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: addrmatch.c,v 1.18 2026/02/06 22:59:18 dtucker Exp $ */
+/* $OpenBSD: addrmatch.c,v 1.19 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2004-2008 Damien Miller <djm at mindrot.org>
@@ -19,11 +19,8 @@
#include "includes.h"
#include <sys/types.h>
-#include <sys/socket.h>
#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/authfd.c b/authfd.c
index 9b103b524..9791b9e6b 100644
--- a/authfd.c
+++ b/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.137 2026/02/07 02:02:00 djm Exp $ */
+/* $OpenBSD: authfd.c,v 1.138 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -43,21 +43,17 @@
#include <fcntl.h>
#include <stdlib.h>
-#include <signal.h>
#include <string.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
-#include "xmalloc.h"
#include "ssh.h"
#include "sshbuf.h"
#include "sshkey.h"
#include "authfd.h"
-#include "cipher.h"
#include "log.h"
#include "atomicio.h"
-#include "misc.h"
#include "ssherr.h"
#define MAX_AGENT_IDENTITIES 2048 /* Max keys in agent reply */
diff --git a/authfile.c b/authfile.c
index e3ca1005f..5fc2ec470 100644
--- a/authfile.c
+++ b/authfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfile.c,v 1.148 2026/02/08 19:54:31 dtucker Exp $ */
+/* $OpenBSD: authfile.c,v 1.149 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000, 2013 Markus Friedl. All rights reserved.
*
@@ -27,7 +27,6 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/uio.h>
#include <errno.h>
#include <fcntl.h>
@@ -36,14 +35,9 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <limits.h>
-#include "cipher.h"
-#include "ssh.h"
#include "log.h"
#include "authfile.h"
-#include "misc.h"
-#include "atomicio.h"
#include "sshkey.h"
#include "sshbuf.h"
#include "ssherr.h"
diff --git a/canohost.c b/canohost.c
index 28f086e5a..2d323d12d 100644
--- a/canohost.c
+++ b/canohost.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: canohost.c,v 1.77 2023/03/31 04:42:29 dtucker Exp $ */
+/* $OpenBSD: canohost.c,v 1.78 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -30,7 +30,6 @@
#include <unistd.h>
#include "xmalloc.h"
-#include "packet.h"
#include "log.h"
#include "canohost.h"
#include "misc.h"
diff --git a/channels.c b/channels.c
index c7e75418f..9775d2c95 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.454 2026/02/06 22:59:18 dtucker Exp $ */
+/* $OpenBSD: channels.c,v 1.455 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -46,7 +46,6 @@
#include <sys/ioctl.h>
#include <sys/un.h>
#include <sys/socket.h>
-#include <sys/time.h>
#include <sys/queue.h>
#include <netinet/in.h>
@@ -76,8 +75,6 @@
#include "channels.h"
#include "compat.h"
#include "canohost.h"
-#include "sshkey.h"
-#include "authfd.h"
#include "pathnames.h"
#include "match.h"
diff --git a/cipher-chachapoly-libcrypto.c b/cipher-chachapoly-libcrypto.c
index e8d20c288..73214e6a7 100644
--- a/cipher-chachapoly-libcrypto.c
+++ b/cipher-chachapoly-libcrypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher-chachapoly-libcrypto.c,v 1.2 2023/07/17 05:26:38 djm Exp $ */
+/* $OpenBSD: cipher-chachapoly-libcrypto.c,v 1.3 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2013 Damien Miller <djm at mindrot.org>
*
@@ -23,13 +23,11 @@
#if defined(HAVE_EVP_CHACHA20) && !defined(HAVE_BROKEN_CHACHA20)
#include <sys/types.h>
-#include <stdarg.h> /* needed for log.h */
#include <string.h>
#include <stdio.h> /* needed for misc.h */
#include <openssl/evp.h>
-#include "log.h"
#include "sshbuf.h"
#include "ssherr.h"
#include "cipher-chachapoly.h"
diff --git a/cipher.c b/cipher.c
index 5e096cebf..f770e666c 100644
--- a/cipher.c
+++ b/cipher.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher.c,v 1.125 2025/09/02 11:08:34 djm Exp $ */
+/* $OpenBSD: cipher.c,v 1.126 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -47,7 +47,6 @@
#include "misc.h"
#include "sshbuf.h"
#include "ssherr.h"
-#include "digest.h"
#include "openbsd-compat/openssl-compat.h"
diff --git a/clientloop.c b/clientloop.c
index 05d82e159..616a7be7a 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.419 2026/02/07 17:10:34 dtucker Exp $ */
+/* $OpenBSD: clientloop.c,v 1.420 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -64,7 +64,6 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
-#include <sys/socket.h>
#include <sys/time.h>
#include <sys/queue.h>
@@ -77,8 +76,6 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
-#include <termios.h>
-#include <pwd.h>
#include <unistd.h>
#include <limits.h>
@@ -91,9 +88,7 @@
#include "channels.h"
#include "dispatch.h"
#include "sshkey.h"
-#include "cipher.h"
#include "kex.h"
-#include "myproposal.h"
#include "log.h"
#include "misc.h"
#include "readconf.h"
@@ -103,7 +98,6 @@
#include "atomicio.h"
#include "sshpty.h"
#include "match.h"
-#include "msg.h"
#include "ssherr.h"
#include "hostfile.h"
diff --git a/compat.c b/compat.c
index b59f0bfc0..31607e3ff 100644
--- a/compat.c
+++ b/compat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat.c,v 1.126 2023/03/06 12:14:48 dtucker Exp $ */
+/* $OpenBSD: compat.c,v 1.127 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
*
@@ -28,7 +28,6 @@
#include <sys/types.h>
#include <stdlib.h>
-#include <string.h>
#include <stdarg.h>
#include "xmalloc.h"
diff --git a/dns.c b/dns.c
index e8693cee8..a47623480 100644
--- a/dns.c
+++ b/dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dns.c,v 1.46 2025/08/29 03:50:38 djm Exp $ */
+/* $OpenBSD: dns.c,v 1.47 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2003 Wesley Griffin. All rights reserved.
@@ -38,7 +38,6 @@
#include "xmalloc.h"
#include "sshkey.h"
-#include "ssherr.h"
#include "dns.h"
#include "log.h"
#include "digest.h"
diff --git a/hmac.c b/hmac.c
index 8641edf4a..155e534c6 100644
--- a/hmac.c
+++ b/hmac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hmac.c,v 1.15 2025/09/05 09:49:26 dtucker Exp $ */
+/* $OpenBSD: hmac.c,v 1.16 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2014 Markus Friedl. All rights reserved.
*
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <string.h>
-#include "sshbuf.h"
#include "digest.h"
#include "hmac.h"
diff --git a/kex-names.c b/kex-names.c
index a20ce602a..751f06cea 100644
--- a/kex-names.c
+++ b/kex-names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kex-names.c,v 1.6 2025/09/02 11:08:34 djm Exp $ */
+/* $OpenBSD: kex-names.c,v 1.7 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
*
@@ -28,7 +28,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <signal.h>
#ifdef WITH_OPENSSL
@@ -43,7 +42,6 @@
#include "misc.h"
#include "ssherr.h"
-#include "xmalloc.h"
struct kexalg {
char *name;
diff --git a/kex.c b/kex.c
index ee2e1cc0a..68fb37042 100644
--- a/kex.c
+++ b/kex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kex.c,v 1.190 2026/02/08 19:54:31 dtucker Exp $ */
+/* $OpenBSD: kex.c,v 1.191 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
*
@@ -33,7 +33,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <poll.h>
#ifdef WITH_OPENSSL
#include <openssl/crypto.h>
@@ -54,7 +53,6 @@
#include "match.h"
#include "misc.h"
#include "dispatch.h"
-#include "monitor.h"
#include "myproposal.h"
#include "ssherr.h"
diff --git a/kexdh.c b/kexdh.c
index 191bdced0..cbcb2d836 100644
--- a/kexdh.c
+++ b/kexdh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexdh.c,v 1.35 2025/10/03 00:08:02 djm Exp $ */
+/* $OpenBSD: kexdh.c,v 1.36 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2019 Markus Friedl. All rights reserved.
*
@@ -26,21 +26,18 @@
#include "includes.h"
#ifdef WITH_OPENSSL
+#include "openbsd-compat/openssl-compat.h"
#include <sys/types.h>
#include <stdio.h>
-#include <string.h>
#include <signal.h>
-#include "openbsd-compat/openssl-compat.h"
#include <openssl/bn.h>
#include <openssl/dh.h>
-#include "sshkey.h"
#include "kex.h"
#include "sshbuf.h"
-#include "digest.h"
#include "ssherr.h"
#include "dh.h"
#include "log.h"
diff --git a/kexecdh.c b/kexecdh.c
index 500ec5725..6a9058cdc 100644
--- a/kexecdh.c
+++ b/kexecdh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexecdh.c,v 1.11 2025/10/03 00:08:02 djm Exp $ */
+/* $OpenBSD: kexecdh.c,v 1.12 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2010 Damien Miller. All rights reserved.
* Copyright (c) 2019 Markus Friedl. All rights reserved.
@@ -31,7 +31,6 @@
#include <sys/types.h>
#include <stdio.h>
-#include <string.h>
#include <signal.h>
#include <openssl/bn.h>
@@ -40,7 +39,6 @@
#include "sshkey.h"
#include "kex.h"
#include "sshbuf.h"
-#include "digest.h"
#include "ssherr.h"
static int
diff --git a/kexgex.c b/kexgex.c
index 8040a1320..daa5a292d 100644
--- a/kexgex.c
+++ b/kexgex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexgex.c,v 1.32 2019/01/23 00:30:41 djm Exp $ */
+/* $OpenBSD: kexgex.c,v 1.33 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
* Copyright (c) 2001 Markus Friedl. All rights reserved.
diff --git a/kexgexc.c b/kexgexc.c
index a114be944..1367960d2 100644
--- a/kexgexc.c
+++ b/kexgexc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexgexc.c,v 1.40 2026/02/08 19:54:31 dtucker Exp $ */
+/* $OpenBSD: kexgexc.c,v 1.41 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -40,7 +40,6 @@
#include <signal.h>
#include "sshkey.h"
-#include "cipher.h"
#include "digest.h"
#include "kex.h"
#include "log.h"
diff --git a/krl.c b/krl.c
index eb4b7c249..0b4aeee45 100644
--- a/krl.c
+++ b/krl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: krl.c,v 1.62 2025/09/15 04:41:20 djm Exp $ */
+/* $OpenBSD: krl.c,v 1.63 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2012 Damien Miller <djm at mindrot.org>
*
@@ -22,17 +22,14 @@
#include <sys/queue.h>
#include <errno.h>
-#include <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <unistd.h>
#include "sshbuf.h"
#include "ssherr.h"
#include "sshkey.h"
-#include "authfile.h"
#include "misc.h"
#include "log.h"
#include "digest.h"
diff --git a/log.c b/log.c
index 2dba5b57f..2903871aa 100644
--- a/log.c
+++ b/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.66 2025/11/17 05:24:42 djm Exp $ */
+/* $OpenBSD: log.c,v 1.67 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -46,7 +46,6 @@
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <time.h>
#include <unistd.h>
#if defined(HAVE_STRNVIS) && defined(HAVE_VIS_H) && !defined(BROKEN_STRNVIS)
# include <vis.h>
diff --git a/msg.c b/msg.c
index a03caeb6f..8173598e5 100644
--- a/msg.c
+++ b/msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msg.c,v 1.21 2024/05/17 00:30:24 djm Exp $ */
+/* $OpenBSD: msg.c,v 1.22 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserved.
*
@@ -26,16 +26,13 @@
#include "includes.h"
#include <sys/types.h>
-#include <sys/uio.h>
#include <errno.h>
-#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include "sshbuf.h"
-#include "ssherr.h"
#include "log.h"
#include "atomicio.h"
#include "msg.h"
diff --git a/mux.c b/mux.c
index be3263c50..56287fd1c 100644
--- a/mux.c
+++ b/mux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mux.c,v 1.109 2025/12/22 01:17:31 djm Exp $ */
+/* $OpenBSD: mux.c,v 1.110 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2002-2008 Damien Miller <djm at openbsd.org>
*
@@ -26,7 +26,6 @@
#include <sys/un.h>
#include <errno.h>
-#include <fcntl.h>
#include <poll.h>
#include <limits.h>
#include <signal.h>
@@ -36,27 +35,20 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <util.h>
-#include <paths.h>
-#include "atomicio.h"
#include "xmalloc.h"
#include "log.h"
#include "ssh.h"
#include "ssh2.h"
-#include "pathnames.h"
#include "misc.h"
#include "match.h"
#include "sshbuf.h"
#include "channels.h"
-#include "msg.h"
#include "packet.h"
#include "monitor_fdpass.h"
#include "sshpty.h"
-#include "sshkey.h"
#include "readconf.h"
#include "clientloop.h"
-#include "ssherr.h"
/* from ssh.c */
extern int tty_flag;
diff --git a/nchan.c b/nchan.c
index 4bf5e8bb1..c9d8e79f6 100644
--- a/nchan.c
+++ b/nchan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nchan.c,v 1.76 2024/07/25 22:40:08 djm Exp $ */
+/* $OpenBSD: nchan.c,v 1.77 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
*
@@ -27,7 +27,6 @@
#include <sys/types.h>
#include <sys/socket.h>
-#include <sys/queue.h>
#include <errno.h>
#include <string.h>
@@ -35,7 +34,6 @@
#include "ssh2.h"
#include "sshbuf.h"
-#include "ssherr.h"
#include "packet.h"
#include "channels.h"
#include "compat.h"
diff --git a/packet.c b/packet.c
index 2551c2a4e..e0ea21a65 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.332 2026/02/08 19:54:31 dtucker Exp $ */
+/* $OpenBSD: packet.c,v 1.333 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -45,7 +45,6 @@
#include <sys/time.h>
#include <netinet/in.h>
-#include <netinet/ip.h>
#include <arpa/inet.h>
#include <errno.h>
@@ -81,15 +80,12 @@
#include "compat.h"
#include "ssh2.h"
#include "cipher.h"
-#include "sshkey.h"
#include "kex.h"
#include "digest.h"
#include "mac.h"
#include "log.h"
#include "canohost.h"
#include "misc.h"
-#include "channels.h"
-#include "ssh.h"
#include "packet.h"
#include "ssherr.h"
#include "sshbuf.h"
diff --git a/readconf.c b/readconf.c
index 064fd33a7..8e0d11f6a 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.409 2026/02/11 22:57:55 djm Exp $ */
+/* $OpenBSD: readconf.c,v 1.410 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -27,7 +27,6 @@
#include <ctype.h>
#include <errno.h>
-#include <fcntl.h>
#include <glob.h>
#include <ifaddrs.h>
#include <limits.h>
@@ -46,7 +45,6 @@
#include "xmalloc.h"
#include "ssh.h"
-#include "ssherr.h"
#include "cipher.h"
#include "pathnames.h"
#include "log.h"
@@ -56,7 +54,6 @@
#include "match.h"
#include "kex.h"
#include "mac.h"
-#include "uidswap.h"
#include "myproposal.h"
#include "digest.h"
#include "version.h"
diff --git a/readpass.c b/readpass.c
index 3c9212c27..2502e520f 100644
--- a/readpass.c
+++ b/readpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpass.c,v 1.72 2025/06/11 13:24:05 dtucker Exp $ */
+/* $OpenBSD: readpass.c,v 1.73 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -43,7 +43,6 @@
#include "pathnames.h"
#include "log.h"
#include "ssh.h"
-#include "uidswap.h"
static char *
ssh_askpass(char *askpass, const char *msg, const char *env_hint)
diff --git a/ssh-ecdsa.c b/ssh-ecdsa.c
index b423bfb65..526ae7454 100644
--- a/ssh-ecdsa.c
+++ b/ssh-ecdsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-ecdsa.c,v 1.28 2025/07/24 05:44:55 djm Exp $ */
+/* $OpenBSD: ssh-ecdsa.c,v 1.29 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -27,6 +27,7 @@
#include "includes.h"
#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
+#include "openbsd-compat/openssl-compat.h"
#include <sys/types.h>
@@ -39,12 +40,9 @@
#include "sshbuf.h"
#include "ssherr.h"
-#include "digest.h"
#define SSHKEY_INTERNAL
#include "sshkey.h"
-#include "openbsd-compat/openssl-compat.h"
-
int
sshkey_ecdsa_fixup_group(EVP_PKEY *k)
{
diff --git a/ssh-ed25519-sk.c b/ssh-ed25519-sk.c
index c6bc5e72b..2c91eb46c 100644
--- a/ssh-ed25519-sk.c
+++ b/ssh-ed25519-sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-ed25519-sk.c,v 1.15 2022/10/28 00:44:44 djm Exp $ */
+/* $OpenBSD: ssh-ed25519-sk.c,v 1.16 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2019 Markus Friedl. All rights reserved.
*
@@ -21,7 +21,6 @@
#define SSHKEY_INTERNAL
#include <sys/types.h>
-#include <limits.h>
#include "crypto_api.h"
@@ -32,7 +31,6 @@
#include "sshbuf.h"
#include "sshkey.h"
#include "ssherr.h"
-#include "ssh.h"
#include "digest.h"
/* Reuse some ED25519 internals */
diff --git a/ssh-ed25519.c b/ssh-ed25519.c
index c7a84dccb..2369c3af0 100644
--- a/ssh-ed25519.c
+++ b/ssh-ed25519.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-ed25519.c,v 1.21 2026/02/11 17:01:34 dtucker Exp $ */
+/* $OpenBSD: ssh-ed25519.c,v 1.22 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2013 Markus Friedl <markus at openbsd.org>
*
@@ -30,7 +30,6 @@
#define SSHKEY_INTERNAL
#include "sshkey.h"
#include "ssherr.h"
-#include "ssh.h"
static void
ssh_ed25519_cleanup(struct sshkey *k)
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index c147ef2a7..b3a7d3f04 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.c,v 1.76 2026/02/06 22:59:18 dtucker Exp $ */
+/* $OpenBSD: ssh-pkcs11.c,v 1.77 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
* Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -27,7 +27,6 @@
#include <stdarg.h>
#include <stdio.h>
-#include <ctype.h>
#include <string.h>
#include <dlfcn.h>
diff --git a/ssh-rsa.c b/ssh-rsa.c
index d6520c21c..ccadb14ca 100644
--- a/ssh-rsa.c
+++ b/ssh-rsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-rsa.c,v 1.83 2026/02/11 17:05:32 dtucker Exp $ */
+/* $OpenBSD: ssh-rsa.c,v 1.84 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000, 2003 Markus Friedl <markus at openbsd.org>
*
@@ -18,13 +18,12 @@
#include "includes.h"
#ifdef WITH_OPENSSL
+#include "openbsd-compat/openssl-compat.h"
#include <sys/types.h>
-#include "openbsd-compat/openssl-compat.h"
#include <openssl/bn.h>
#include <openssl/evp.h>
-#include <openssl/err.h>
#include <stdarg.h>
#include <string.h>
@@ -34,7 +33,6 @@
#define SSHKEY_INTERNAL
#include "sshkey.h"
#include "digest.h"
-#include "log.h"
static u_int
ssh_rsa_size(const struct sshkey *k)
diff --git a/ssh-sk-client.c b/ssh-sk-client.c
index 06fad2213..df3dd0fc7 100644
--- a/ssh-sk-client.c
+++ b/ssh-sk-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk-client.c,v 1.13 2025/02/18 08:02:48 djm Exp $ */
+/* $OpenBSD: ssh-sk-client.c,v 1.14 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
@@ -21,7 +21,6 @@
#include <sys/socket.h>
#include <sys/wait.h>
-#include <fcntl.h>
#include <limits.h>
#include <errno.h>
#include <signal.h>
@@ -36,7 +35,6 @@
#include "sshbuf.h"
#include "sshkey.h"
#include "msg.h"
-#include "digest.h"
#include "pathnames.h"
#include "ssh-sk.h"
#include "misc.h"
diff --git a/ssh.c b/ssh.c
index 8c4b79be4..68da120a2 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.624 2026/02/11 22:57:55 djm Exp $ */
+/* $OpenBSD: ssh.c,v 1.625 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -43,12 +43,8 @@
#include "includes.h"
#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/queue.h>
-#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/stat.h>
-#include <sys/time.h>
#include <sys/wait.h>
#include <sys/utsname.h>
@@ -81,7 +77,6 @@
#include "xmalloc.h"
#include "ssh.h"
#include "ssh2.h"
-#include "canohost.h"
#include "compat.h"
#include "cipher.h"
#include "packet.h"
@@ -91,7 +86,6 @@
#include "authfd.h"
#include "authfile.h"
#include "pathnames.h"
-#include "dispatch.h"
#include "clientloop.h"
#include "log.h"
#include "misc.h"
@@ -99,13 +93,9 @@
#include "sshconnect.h"
#include "kex.h"
#include "mac.h"
-#include "sshpty.h"
#include "match.h"
-#include "msg.h"
#include "version.h"
#include "ssherr.h"
-#include "myproposal.h"
-#include "utf8.h"
#ifdef ENABLE_PKCS11
#include "ssh-pkcs11.h"
diff --git a/sshconnect.c b/sshconnect.c
index 16bdb1c1e..4e0a10a8b 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.380 2026/02/11 22:57:55 djm Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.381 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -17,15 +17,12 @@
#include <sys/types.h>
#include <sys/wait.h>
-#include <sys/stat.h>
#include <sys/socket.h>
-#include <sys/time.h>
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
@@ -45,7 +42,6 @@
#include "hostfile.h"
#include "ssh.h"
#include "compat.h"
-#include "sshbuf.h"
#include "packet.h"
#include "sshkey.h"
#include "sshconnect.h"
@@ -53,11 +49,8 @@
#include "match.h"
#include "misc.h"
#include "readconf.h"
-#include "atomicio.h"
#include "dns.h"
#include "monitor_fdpass.h"
-#include "ssh2.h"
-#include "version.h"
#include "authfile.h"
#include "ssherr.h"
#include "authfd.h"
diff --git a/sshconnect2.c b/sshconnect2.c
index efef5cd6f..7c63e2efd 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect2.c,v 1.380 2026/02/05 22:05:49 djm Exp $ */
+/* $OpenBSD: sshconnect2.c,v 1.381 2026/02/14 00:18:34 jsg Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Damien Miller. All rights reserved.
@@ -35,7 +35,6 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
-#include <netdb.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
@@ -57,7 +56,6 @@
#include "kex.h"
#include "sshconnect.h"
#include "authfile.h"
-#include "dh.h"
#include "authfd.h"
#include "log.h"
#include "misc.h"
@@ -67,7 +65,6 @@
#include "canohost.h"
#include "msg.h"
#include "pathnames.h"
-#include "uidswap.h"
#include "hostfile.h"
#include "ssherr.h"
#include "utf8.h"
diff --git a/ttymodes.c b/ttymodes.c
index 1d20ce800..6102f8d82 100644
--- a/ttymodes.c
+++ b/ttymodes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttymodes.c,v 1.36 2021/01/27 09:26:54 djm Exp $ */
+/* $OpenBSD: ttymodes.c,v 1.37 2026/02/14 00:18:34 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -56,7 +56,6 @@
#include "log.h"
#include "compat.h"
#include "sshbuf.h"
-#include "ssherr.h"
#define TTY_OP_END 0
/*
diff --git a/umac.c b/umac.c
index 6e31b115b..89cce9776 100644
--- a/umac.c
+++ b/umac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umac.c,v 1.28 2026/02/06 22:59:18 dtucker Exp $ */
+/* $OpenBSD: umac.c,v 1.29 2026/02/14 00:18:34 jsg Exp $ */
/* -----------------------------------------------------------------------
*
* umac.c -- C Implementation UMAC Message Authentication
@@ -77,7 +77,6 @@
#include <endian.h>
#include <string.h>
#include <stdarg.h>
-#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list