diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2019-09-06 04:53:28 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2019-09-06 04:53:28 +0000 |
commit | 464e83cf71ceb9a52efd400f06dba6ae6b47401b (patch) | |
tree | 34969c6bc79e30d747551ba0e644493e514ac895 | |
parent | bb190f41db2e37f97c78bd6cccc26fea2e3a8b3b (diff) |
lots of things were relying on libcrypto headers to transitively
include various system headers (mostly stdlib.h); include them
explicitly
-rw-r--r-- | usr.bin/ssh/auth-options.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/auth.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/auth2-chall.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/auth2-hostbased.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/auth2-kbdint.c | 5 | ||||
-rw-r--r-- | usr.bin/ssh/auth2-passwd.c | 4 | ||||
-rw-r--r-- | usr.bin/ssh/auth2-pubkey.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/auth2.c | 4 | ||||
-rw-r--r-- | usr.bin/ssh/hmac.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/krl.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/log.h | 4 | ||||
-rw-r--r-- | usr.bin/ssh/mac.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/ssh-keysign.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/ssh-pkcs11-helper.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/ssh_api.c | 7 | ||||
-rw-r--r-- | usr.bin/ssh/sshbuf-getput-basic.c | 3 |
17 files changed, 42 insertions, 18 deletions
diff --git a/usr.bin/ssh/auth-options.c b/usr.bin/ssh/auth-options.c index c1fb6cba4e1..2aa48074ebf 100644 --- a/usr.bin/ssh/auth-options.c +++ b/usr.bin/ssh/auth-options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth-options.c,v 1.87 2019/09/03 08:32:11 djm Exp $ */ +/* $OpenBSD: auth-options.c,v 1.88 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2018 Damien Miller <djm@mindrot.org> * @@ -18,6 +18,7 @@ #include <sys/types.h> #include <sys/queue.h> +#include <stdlib.h> #include <netdb.h> #include <pwd.h> #include <string.h> diff --git a/usr.bin/ssh/auth.c b/usr.bin/ssh/auth.c index 50902095382..b25e256260b 100644 --- a/usr.bin/ssh/auth.c +++ b/usr.bin/ssh/auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.139 2019/06/28 13:35:04 deraadt Exp $ */ +/* $OpenBSD: auth.c,v 1.140 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -28,6 +28,7 @@ #include <sys/socket.h> #include <sys/wait.h> +#include <stdlib.h> #include <errno.h> #include <fcntl.h> #include <login_cap.h> diff --git a/usr.bin/ssh/auth2-chall.c b/usr.bin/ssh/auth2-chall.c index 3941726e574..0610b2b4e63 100644 --- a/usr.bin/ssh/auth2-chall.c +++ b/usr.bin/ssh/auth2-chall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-chall.c,v 1.50 2018/07/11 18:55:11 markus Exp $ */ +/* $OpenBSD: auth2-chall.c,v 1.51 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * Copyright (c) 2001 Per Allansson. All rights reserved. @@ -26,6 +26,7 @@ #include <sys/types.h> +#include <stdlib.h> #include <stdio.h> #include <string.h> diff --git a/usr.bin/ssh/auth2-hostbased.c b/usr.bin/ssh/auth2-hostbased.c index 1484761a5b3..68c050631ed 100644 --- a/usr.bin/ssh/auth2-hostbased.c +++ b/usr.bin/ssh/auth2-hostbased.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-hostbased.c,v 1.40 2019/01/19 21:43:56 djm Exp $ */ +/* $OpenBSD: auth2-hostbased.c,v 1.41 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -26,6 +26,7 @@ #include <sys/types.h> +#include <stdlib.h> #include <pwd.h> #include <string.h> #include <stdarg.h> diff --git a/usr.bin/ssh/auth2-kbdint.c b/usr.bin/ssh/auth2-kbdint.c index b6512d8adb5..92863917617 100644 --- a/usr.bin/ssh/auth2-kbdint.c +++ b/usr.bin/ssh/auth2-kbdint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-kbdint.c,v 1.9 2018/07/09 21:35:50 markus Exp $ */ +/* $OpenBSD: auth2-kbdint.c,v 1.10 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -25,6 +25,9 @@ #include <sys/types.h> +#include <stdlib.h> +#include <stdio.h> + #include "xmalloc.h" #include "packet.h" #include "hostfile.h" diff --git a/usr.bin/ssh/auth2-passwd.c b/usr.bin/ssh/auth2-passwd.c index 72ce2cbc2a6..2c13bb3c975 100644 --- a/usr.bin/ssh/auth2-passwd.c +++ b/usr.bin/ssh/auth2-passwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-passwd.c,v 1.16 2018/07/09 21:35:50 markus Exp $ */ +/* $OpenBSD: auth2-passwd.c,v 1.17 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -25,8 +25,10 @@ #include <sys/types.h> +#include <stdlib.h> #include <string.h> #include <stdarg.h> +#include <stdio.h> #include "packet.h" #include "ssherr.h" diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c index d618289676d..455dee1be38 100644 --- a/usr.bin/ssh/auth2-pubkey.c +++ b/usr.bin/ssh/auth2-pubkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-pubkey.c,v 1.93 2019/09/03 08:30:47 djm Exp $ */ +/* $OpenBSD: auth2-pubkey.c,v 1.94 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -27,6 +27,7 @@ #include <sys/types.h> #include <sys/stat.h> +#include <stdlib.h> #include <errno.h> #include <fcntl.h> #include <paths.h> diff --git a/usr.bin/ssh/auth2.c b/usr.bin/ssh/auth2.c index 7ab1a832730..83c4c8d2dc2 100644 --- a/usr.bin/ssh/auth2.c +++ b/usr.bin/ssh/auth2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2.c,v 1.156 2019/06/28 05:44:09 deraadt Exp $ */ +/* $OpenBSD: auth2.c,v 1.157 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -23,7 +23,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - #include <sys/types.h> #include <sys/stat.h> #include <sys/uio.h> @@ -36,6 +35,7 @@ #include <unistd.h> #include <time.h> +#include "stdlib.h" #include "atomicio.h" #include "xmalloc.h" #include "ssh2.h" diff --git a/usr.bin/ssh/hmac.c b/usr.bin/ssh/hmac.c index 8ab0f0585c2..bb6fd6200bd 100644 --- a/usr.bin/ssh/hmac.c +++ b/usr.bin/ssh/hmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hmac.c,v 1.12 2015/03/24 20:03:44 markus Exp $ */ +/* $OpenBSD: hmac.c,v 1.13 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2014 Markus Friedl. All rights reserved. * @@ -17,6 +17,7 @@ #include <sys/types.h> #include <string.h> +#include <stdlib.h> #include "sshbuf.h" #include "digest.h" diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c index 7d552f609a2..0edba9a0265 100644 --- a/usr.bin/ssh/krl.c +++ b/usr.bin/ssh/krl.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.43 2019/06/21 04:21:04 djm Exp $ */ +/* $OpenBSD: krl.c,v 1.44 2019/09/06 04:53:27 djm Exp $ */ #include <sys/types.h> #include <sys/tree.h> @@ -26,6 +26,7 @@ #include <string.h> #include <time.h> #include <unistd.h> +#include <stdlib.h> #include "sshbuf.h" #include "ssherr.h" diff --git a/usr.bin/ssh/log.h b/usr.bin/ssh/log.h index 99031b6b6e4..bd5c620e561 100644 --- a/usr.bin/ssh/log.h +++ b/usr.bin/ssh/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.23 2018/07/27 12:03:17 markus Exp $ */ +/* $OpenBSD: log.h,v 1.24 2019/09/06 04:53:27 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -15,6 +15,8 @@ #ifndef SSH_LOG_H #define SSH_LOG_H +#include <stdarg.h> /* va_list */ + /* Supported syslog facilities and levels. */ typedef enum { SYSLOG_FACILITY_DAEMON, diff --git a/usr.bin/ssh/mac.c b/usr.bin/ssh/mac.c index bb0e51de74b..d3b64409a74 100644 --- a/usr.bin/ssh/mac.c +++ b/usr.bin/ssh/mac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mac.c,v 1.34 2017/05/08 22:57:38 djm Exp $ */ +/* $OpenBSD: mac.c,v 1.35 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -27,6 +27,7 @@ #include <string.h> #include <stdio.h> +#include <stdlib.h> #include "digest.h" #include "hmac.h" diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 7021fa0a8dc..8d07b5f4e11 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.346 2019/09/03 20:51:49 naddy Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.347 2019/09/06 04:53:27 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -19,6 +19,7 @@ #include <openssl/evp.h> #include <openssl/pem.h> +#include <stdint.h> #include <errno.h> #include <fcntl.h> #include <netdb.h> diff --git a/usr.bin/ssh/ssh-keysign.c b/usr.bin/ssh/ssh-keysign.c index 13b6137bf18..b11d1b0472c 100644 --- a/usr.bin/ssh/ssh-keysign.c +++ b/usr.bin/ssh/ssh-keysign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keysign.c,v 1.58 2019/06/14 03:28:19 djm Exp $ */ +/* $OpenBSD: ssh-keysign.c,v 1.59 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2002 Markus Friedl. All rights reserved. * @@ -32,6 +32,7 @@ #include <paths.h> #include <pwd.h> #include <stdlib.h> +#include <stdio.h> #include <string.h> #include <unistd.h> #include <errno.h> diff --git a/usr.bin/ssh/ssh-pkcs11-helper.c b/usr.bin/ssh/ssh-pkcs11-helper.c index b98f9f33e5c..76bb8a7aa31 100644 --- a/usr.bin/ssh/ssh-pkcs11-helper.c +++ b/usr.bin/ssh/ssh-pkcs11-helper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-pkcs11-helper.c,v 1.19 2019/06/06 05:13:13 otto Exp $ */ +/* $OpenBSD: ssh-pkcs11-helper.c,v 1.20 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2010 Markus Friedl. All rights reserved. * @@ -19,6 +19,7 @@ #include <sys/queue.h> #include <sys/time.h> +#include <stdlib.h> #include <errno.h> #include <poll.h> #include <stdarg.h> diff --git a/usr.bin/ssh/ssh_api.c b/usr.bin/ssh/ssh_api.c index 9dd008cc5e8..4e250b38d0c 100644 --- a/usr.bin/ssh/ssh_api.c +++ b/usr.bin/ssh/ssh_api.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh_api.c,v 1.15 2019/01/21 10:38:54 djm Exp $ */ +/* $OpenBSD: ssh_api.c,v 1.16 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2012 Markus Friedl. All rights reserved. * @@ -15,6 +15,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/types.h> + +#include <stdio.h> +#include <stdlib.h> + #include "ssh_api.h" #include "compat.h" #include "log.h" diff --git a/usr.bin/ssh/sshbuf-getput-basic.c b/usr.bin/ssh/sshbuf-getput-basic.c index 5e9ebbb0ced..6687fb2a6b2 100644 --- a/usr.bin/ssh/sshbuf-getput-basic.c +++ b/usr.bin/ssh/sshbuf-getput-basic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf-getput-basic.c,v 1.8 2019/07/14 23:32:27 djm Exp $ */ +/* $OpenBSD: sshbuf-getput-basic.c,v 1.9 2019/09/06 04:53:27 djm Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -21,6 +21,7 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> +#include <stdint.h> #include "ssherr.h" #define SSHBUF_INTERNAL |