aboutsummaryrefslogtreecommitdiffstats
path: root/main/hostapd/libressl-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/hostapd/libressl-compat.patch')
-rw-r--r--main/hostapd/libressl-compat.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/hostapd/libressl-compat.patch b/main/hostapd/libressl-compat.patch
new file mode 100644
index 0000000000..d7c12bcf6a
--- /dev/null
+++ b/main/hostapd/libressl-compat.patch
@@ -0,0 +1,22 @@
+diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c
+index 19e0e2b..b3d1b07 100644
+--- a/src/crypto/crypto_openssl.c
++++ b/src/crypto/crypto_openssl.c
+@@ -611,7 +611,7 @@ void crypto_cipher_deinit(struct crypto_cipher *ctx)
+
+ void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
+ {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ DH *dh;
+ struct wpabuf *pubkey = NULL, *privkey = NULL;
+ size_t publen, privlen;
+@@ -712,7 +712,7 @@ err:
+
+ void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ)
+ {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ DH *dh;
+
+ dh = DH_new();