summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh_api.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2019-09-06 04:53:27 +0000
committerdjm <djm@openbsd.org>2019-09-06 04:53:27 +0000
commitd04a6061f0866a4ab36af18874a5686e578dcf04 (patch)
tree1fb44b41a1e1d09d85a4e70f23c0370b96692df4 /usr.bin/ssh/ssh_api.c
parentCheck for RSA support before using it for the user key, otherwise use (diff)
downloadwireguard-openbsd-d04a6061f0866a4ab36af18874a5686e578dcf04.tar.xz
wireguard-openbsd-d04a6061f0866a4ab36af18874a5686e578dcf04.zip
lots of things were relying on libcrypto headers to transitively
include various system headers (mostly stdlib.h); include them explicitly
Diffstat (limited to 'usr.bin/ssh/ssh_api.c')
-rw-r--r--usr.bin/ssh/ssh_api.c7
1 files changed, 6 insertions, 1 deletions
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"