commit | d76fa0c1b5d055874aced50e48ba07729f6a8e44 | [log] [tgz] |
---|---|---|
author | Charlie Li <git@vishwin.info> | Wed Jan 06 12:26:27 2021 -0500 |
committer | Charlie Li <git@vishwin.info> | Wed Jan 06 12:26:27 2021 -0500 |
tree | 7a5474aa318c43c449858fc4588fffb326dbebc5 | |
parent | bf4a5e20740a7b375138a7007d0c758062c55ff7 [diff] |
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