Add headers to prevent warnings w/out OpenSSL.

This commit is contained in:
Darren Tucker 2019-07-23 22:25:44 +10:00
parent 2ea60312e1
commit 9634ffbf29
8 changed files with 19 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include "packet.h" #include "packet.h"
#include "ssherr.h" #include "ssherr.h"

View File

@ -39,6 +39,7 @@
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <stddef.h> /* for offsetof */ #include <stddef.h> /* for offsetof */
@ -248,6 +249,9 @@ seed_rng(void)
#else /* WITH_OPENSSL */ #else /* WITH_OPENSSL */
#include <stdlib.h>
#include <string.h>
/* Acutal initialisation is handled in arc4random() */ /* Acutal initialisation is handled in arc4random() */
void void
seed_rng(void) seed_rng(void)

View File

@ -211,6 +211,8 @@ kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob,
#else #else
#include <stdio.h>
#include "sshkey.h" #include "sshkey.h"
#include "kex.h" #include "kex.h"
#include "ssherr.h" #include "ssherr.h"

View File

@ -27,6 +27,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <signal.h> #include <signal.h>

View File

@ -163,6 +163,7 @@
#endif #endif
#include <pwd.h> #include <pwd.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>

View File

@ -17,6 +17,7 @@
#include "includes.h" #include "includes.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include "log.h" #include "log.h"

View File

@ -31,6 +31,7 @@
#endif #endif
#include <pwd.h> #include <pwd.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -1789,6 +1789,14 @@ out:
} }
#endif /* WITH_PKCS11_KEYGEN */ #endif /* WITH_PKCS11_KEYGEN */
#else /* ENABLE_PKCS11 */ #else /* ENABLE_PKCS11 */
#include <sys/types.h>
#include <stdarg.h>
#include <stdio.h>
#include "log.h"
#include "sshkey.h"
int int
pkcs11_init(int interactive) pkcs11_init(int interactive)
{ {