]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix building without openssl.
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 20 Jan 2020 09:32:23 +0000 (10:32 +0100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 20 Jan 2020 10:14:46 +0000 (21:14 +1100)
This fixes the following when there are no openssl headers on the system:
ssh-ecdsa-sk.c:34:10: fatal error: 'openssl/bn.h' file not found

ssh-ecdsa-sk.c

index 083787952695d7b47eef1d4b6df4b909bfdd0372..981d60d740feff51887939f1f8adb4af5b92ad6c 100644 (file)
 
 #include <sys/types.h>
 
+#ifdef WITH_OPENSSL
 #include <openssl/bn.h>
 #include <openssl/ec.h>
 #include <openssl/ecdsa.h>
 #include <openssl/evp.h>
+#endif
 
 #include <string.h>
 #include <stdio.h> /* needed for DEBUG_SK only */