summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keysign.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2019-09-06 05:23:55 +0000
committerdjm <djm@openbsd.org>2019-09-06 05:23:55 +0000
commit1f96526fb0deff53898d266d4e2e399e64e301ef (patch)
tree97f4b05f2b48e51c0d3734edbd9464b42cb9ed34 /usr.bin/ssh/ssh-keysign.c
parentlots of things were relying on libcrypto headers to transitively (diff)
downloadwireguard-openbsd-1f96526fb0deff53898d266d4e2e399e64e301ef.tar.xz
wireguard-openbsd-1f96526fb0deff53898d266d4e2e399e64e301ef.zip
fixes for !WITH_OPENSSL compilation; ok dtucker@
Diffstat (limited to 'usr.bin/ssh/ssh-keysign.c')
-rw-r--r--usr.bin/ssh/ssh-keysign.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keysign.c b/usr.bin/ssh/ssh-keysign.c
index b11d1b0472c..2c87801b84d 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.59 2019/09/06 04:53:27 djm Exp $ */
+/* $OpenBSD: ssh-keysign.c,v 1.60 2019/09/06 05:23:55 djm Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserved.
*
@@ -25,8 +25,9 @@
#include <sys/types.h>
+#ifdef WITH_OPENSSL
#include <openssl/evp.h>
-#include <openssl/rsa.h>
+#endif
#include <fcntl.h>
#include <paths.h>
@@ -211,8 +212,9 @@ main(int argc, char **argv)
if (found == 0)
fatal("could not open any host key");
+#ifdef WITH_OPENSSL
OpenSSL_add_all_algorithms();
-
+#endif
found = 0;
for (i = 0; i < NUM_KEYTYPES; i++) {
keys[i] = NULL;