--- ./common/ssl_calls.c.orig
+++ ./common/ssl_calls.c
@@ -40,7 +40,7 @@
 
 #define SSL_WANT_READ_WRITE_TIMEOUT 100
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 static inline HMAC_CTX *
 HMAC_CTX_new(void)
 {
