libressl-compat.patch 769 B

12345678910111213141516171819202122
  1. diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c
  2. index 19e0e2b..b3d1b07 100644
  3. --- a/src/crypto/crypto_openssl.c
  4. +++ b/src/crypto/crypto_openssl.c
  5. @@ -611,7 +611,7 @@ void crypto_cipher_deinit(struct crypto_cipher *ctx)
  6. void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
  7. {
  8. -#if OPENSSL_VERSION_NUMBER < 0x10100000L
  9. +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
  10. DH *dh;
  11. struct wpabuf *pubkey = NULL, *privkey = NULL;
  12. size_t publen, privlen;
  13. @@ -712,7 +712,7 @@ err:
  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. dh = DH_new();