mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
Port changes: - Remove patches that have been incorporated upstream - Add patches for LibreSSL support Approved by: AMDmi3 (mentor) Differential Revision: https://reviews.freebsd.org/D8451
20 lines
681 B
C
20 lines
681 B
C
--- src/crypto/crypto_openssl.c.orig 2016-11-02 18:04:18 UTC
|
|
+++ src/crypto/crypto_openssl.c
|
|
@@ -611,7 +611,7 @@ void crypto_cipher_deinit(struct crypto_
|
|
|
|
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();
|