[openssh-commits] [openssh] 04/04: Add headers to prevent warnings w/out OpenSSL.
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Jul 23 22:27:39 AEST 2019
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 9634ffbf29b3c2493e69d10b37077b09a8cbf5ff
Author: Darren Tucker <dtucker at dtucker.net>
Date: Tue Jul 23 22:25:44 2019 +1000
Add headers to prevent warnings w/out OpenSSL.
---
auth2-passwd.c | 1 +
entropy.c | 4 ++++
kexecdh.c | 2 ++
kexgen.c | 1 +
loginrec.c | 1 +
platform.c | 1 +
ssh-keysign.c | 1 +
ssh-pkcs11.c | 8 ++++++++
8 files changed, 19 insertions(+)
diff --git a/auth2-passwd.c b/auth2-passwd.c
index 0395a69f..f696abc2 100644
--- a/auth2-passwd.c
+++ b/auth2-passwd.c
@@ -29,6 +29,7 @@
#include <string.h>
#include <stdarg.h>
+#include <stdio.h>
#include "packet.h"
#include "ssherr.h"
diff --git a/entropy.c b/entropy.c
index 5c6594ac..dc307e76 100644
--- a/entropy.c
+++ b/entropy.c
@@ -39,6 +39,7 @@
#include <errno.h>
#include <signal.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stddef.h> /* for offsetof */
@@ -248,6 +249,9 @@ seed_rng(void)
#else /* WITH_OPENSSL */
+#include <stdlib.h>
+#include <string.h>
+
/* Acutal initialisation is handled in arc4random() */
void
seed_rng(void)
diff --git a/kexecdh.c b/kexecdh.c
index 9a3bb81b..be324a83 100644
--- a/kexecdh.c
+++ b/kexecdh.c
@@ -211,6 +211,8 @@ kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob,
#else
+#include <stdio.h>
+
#include "sshkey.h"
#include "kex.h"
#include "ssherr.h"
diff --git a/kexgen.c b/kexgen.c
index 2abbb9ef..54292652 100644
--- a/kexgen.c
+++ b/kexgen.c
@@ -27,6 +27,7 @@
#include <sys/types.h>
+#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
diff --git a/loginrec.c b/loginrec.c
index 5f2a4779..93e48d51 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -163,6 +163,7 @@
#endif
#include <pwd.h>
#include <stdarg.h>
+#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
diff --git a/platform.c b/platform.c
index 41acc937..44ba71dc 100644
--- a/platform.c
+++ b/platform.c
@@ -17,6 +17,7 @@
#include "includes.h"
#include <stdarg.h>
+#include <stdio.h>
#include <unistd.h>
#include "log.h"
diff --git a/ssh-keysign.c b/ssh-keysign.c
index 7c14cde8..a4a1b8c2 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -31,6 +31,7 @@
#endif
#include <pwd.h>
#include <stdarg.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index d9413bc4..45ab80d0 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1789,6 +1789,14 @@ out:
}
#endif /* WITH_PKCS11_KEYGEN */
#else /* ENABLE_PKCS11 */
+
+#include <sys/types.h>
+#include <stdarg.h>
+#include <stdio.h>
+
+#include "log.h"
+#include "sshkey.h"
+
int
pkcs11_init(int interactive)
{
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list