summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-01-30 23:10:17 +1100
committerDamien Miller <djm@mindrot.org>2015-02-18 22:29:32 +1100
commit773dda25e828c4c9a52f7bdce6e1e5924157beab (patch)
tree831507f35a8feb0ae984a7a13f521932a0fedb61 /packet.h
parente89c780886b23600de1e1c8d74aabd1ff61f43f0 (diff)
repair --without-openssl; broken in refactor
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/packet.h b/packet.h
index 01df9f413..cb194567a 100644
--- a/packet.h
+++ b/packet.h
@@ -22,8 +22,18 @@
22# include <openssl/bn.h> 22# include <openssl/bn.h>
23# ifdef OPENSSL_HAS_ECC 23# ifdef OPENSSL_HAS_ECC
24# include <openssl/ec.h> 24# include <openssl/ec.h>
25# endif 25# else /* OPENSSL_HAS_ECC */
26#endif 26# define EC_KEY void
27# define EC_GROUP void
28# define EC_POINT void
29# endif /* OPENSSL_HAS_ECC */
30#else /* WITH_OPENSSL */
31# define BIGNUM void
32# define EC_KEY void
33# define EC_GROUP void
34# define EC_POINT void
35#endif /* WITH_OPENSSL */
36
27#include <sys/signal.h> 37#include <sys/signal.h>
28#include <sys/queue.h> 38#include <sys/queue.h>
29 39
@@ -182,4 +192,15 @@ const u_char *sshpkt_ptr(struct ssh *, size_t *lenp);
182extern struct ssh *active_state; 192extern struct ssh *active_state;
183#include "opacket.h" 193#include "opacket.h"
184 194
195#if !defined(WITH_OPENSSL)
196# undef BIGNUM
197# undef EC_KEY
198# undef EC_GROUP
199# undef EC_POINT
200#elif !defined(OPENSSL_HAS_ECC)
201# undef EC_KEY
202# undef EC_GROUP
203# undef EC_POINT
204#endif
205
185#endif /* PACKET_H */ 206#endif /* PACKET_H */