LibreSSL has used the OpenSSL 1.1 API since 2.7
diff --git a/lib/zip_crypto_openssl.c b/lib/zip_crypto_openssl.c
index 446e640..7d7bd6c 100644
--- a/lib/zip_crypto_openssl.c
+++ b/lib/zip_crypto_openssl.c
@@ -40,7 +40,7 @@
 #include <limits.h>
 #include <openssl/rand.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x1010000fL || LIBRESSL_VERSION_NUMBER < 0x02070000fL
 #define USE_OPENSSL_1_0_API
 #endif