View | Details | Raw Unified | Return to bug 218802
Collapse All | Expand All

(-)files/patch-crypto__openssl.c (+20 lines)
Line 0 Link Here
1
--- src/crypto/crypto_openssl.c.orig	2017-04-21 20:53:34 UTC
2
+++ src/crypto/crypto_openssl.c
3
@@ -611,7 +611,7 @@ void crypto_cipher_deinit(struct crypto_
4
 
5
 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
6
 {
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
9
 	DH *dh;
10
 	struct wpabuf *pubkey = NULL, *privkey = NULL;
11
 	size_t publen, privlen;
12
@@ -712,7 +712,7 @@ err:
13
 
14
 void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ)
15
 {
16
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
17
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
18
 	DH *dh;
19
 
20
 	dh = DH_new();

Return to bug 218802