summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-23 22:25:44 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-07-23 22:26:20 +1000
commit9634ffbf29b3c2493e69d10b37077b09a8cbf5ff (patch)
tree74f29fc321cd0dc93abf18626e083d53e1a0fd01
parent2ea60312e1c08dea88982fec68244f89a40912ff (diff)
Add headers to prevent warnings w/out OpenSSL.
-rw-r--r--auth2-passwd.c1
-rw-r--r--entropy.c4
-rw-r--r--kexecdh.c2
-rw-r--r--kexgen.c1
-rw-r--r--loginrec.c1
-rw-r--r--platform.c1
-rw-r--r--ssh-keysign.c1
-rw-r--r--ssh-pkcs11.c8
8 files changed, 19 insertions, 0 deletions
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)
{