Commit 9bfebc4a authored by Mark Andrews's avatar Mark Andrews
Browse files

check for LIBRESSL_VERSION_NUMBER

(cherry picked from commit b2c1d6f0)
parent 429b5430
...@@ -688,7 +688,8 @@ parse_command_line(int argc, char *argv[]) { ...@@ -688,7 +688,8 @@ parse_command_line(int argc, char *argv[]) {
#ifdef OPENSSL #ifdef OPENSSL
printf("compiled with OpenSSL version: %s\n", printf("compiled with OpenSSL version: %s\n",
OPENSSL_VERSION_TEXT); OPENSSL_VERSION_TEXT);
#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0 or higher */ #if !defined(LIBRESSL_VERSION_NUMBER) && \
OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0 or higher */
printf("linked to OpenSSL version: %s\n", printf("linked to OpenSSL version: %s\n",
OpenSSL_version(OPENSSL_VERSION)); OpenSSL_version(OPENSSL_VERSION));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment