From a6ddffd9c3a8e5a9151282c27d7e8034bc15925c Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 25 Jan 2021 16:56:29 +0100
Subject: [PATCH] Fix build with LibreSSL 3.3.1

---
 openssl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openssl.c b/openssl.c
index 15166dac..b29aa926 100644
--- a/openssl.c
+++ b/openssl.c
@@ -2236,8 +2236,12 @@ extern void ssl_release(void)
 {
    if (ssl_inited == 1)
    {
+#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
+#ifndef LIBRESSL_VERSION_NUMBER
 #ifndef OPENSSL_NO_COMP
       SSL_COMP_free_compression_methods();
+#endif
+#endif
 #endif
       CONF_modules_free();
       CONF_modules_unload(1);
-- 
2.49.0