summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/packet.h')
-rw-r--r--usr.bin/ssh/packet.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/usr.bin/ssh/packet.h b/usr.bin/ssh/packet.h
index 4ff3682baec..acc589225de 100644
--- a/usr.bin/ssh/packet.h
+++ b/usr.bin/ssh/packet.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.h,v 1.90 2019/01/21 10:35:09 djm Exp $ */
+/* $OpenBSD: packet.h,v 1.91 2019/09/06 05:23:55 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -18,11 +18,19 @@
#include <termios.h>
-#include <openssl/bn.h>
-#include <openssl/ec.h>
#include <sys/signal.h>
#include <sys/queue.h>
+#ifdef WITH_OPENSSL
+#include <openssl/bn.h>
+#include <openssl/ec.h>
+#include <openssl/ecdsa.h>
+#else /* OPENSSL */
+#define BIGNUM void
+#define EC_GROUP void
+#define EC_POINT void
+#endif /* WITH_OPENSSL */
+
struct kex;
struct sshkey;
struct sshbuf;