summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-09-06 05:23:55 +0000
committerDamien Miller <djm@mindrot.org>2019-09-06 17:54:21 +1000
commit670104b923dd97b1c06c0659aef7c3e52af571b2 (patch)
tree28f189b92f2b56d071535b13e969050c7465fc58 /kex.h
parentbe02d7cbde3d211ec2ed2320a1f7d86b2339d758 (diff)
upstream: fixes for !WITH_OPENSSL compilation; ok dtucker@
OpenBSD-Commit-ID: 7fd68eaa9e0f7482b5d4c7e8d740aed4770a839f
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/kex.h b/kex.h
index 613904b6c..6465df88d 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.h,v 1.108 2019/09/06 03:30:42 djm Exp $ */ 1/* $OpenBSD: kex.h,v 1.109 2019/09/06 05:23:55 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -45,6 +45,18 @@
45# define EC_POINT void 45# define EC_POINT void
46#endif /* WITH_OPENSSL */ 46#endif /* WITH_OPENSSL */
47 47
48#ifdef WITH_OPENSSL
49#include <openssl/bn.h>
50#include <openssl/dh.h>
51#include <openssl/ec.h>
52#include <openssl/ecdsa.h>
53#else /* OPENSSL */
54#define BIGNUM void
55#define DH void
56#define EC_KEY void
57#define EC_GROUP void
58#endif /* WITH_OPENSSL */
59
48#define KEX_COOKIE_LEN 16 60#define KEX_COOKIE_LEN 16
49 61
50#define KEX_DH1 "diffie-hellman-group1-sha1" 62#define KEX_DH1 "diffie-hellman-group1-sha1"