summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-01-12 00:11:11 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-01-12 00:11:11 +0100
commitb418e6b0f0c2335f782fe6bc53c1df5f2233e09f (patch)
tree00737a2abe815ad6ef44968fabee3e9ac120d0ad
parent4dc7cd40f6df536c483a44080b3fd7e116b5e089 (diff)
downloadcurl-bagder/openssl-3_0_0.tar.gz
fixup check the define toobagder/openssl-3_0_0
-rw-r--r--lib/vtls/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 161e520e9..6b050a9ec 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -3774,7 +3774,7 @@ static size_t Curl_ossl_version(char *buffer, size_t size)
{
#ifdef OPENSSL_IS_BORINGSSL
return msnprintf(buffer, size, OSSL_PACKAGE);
-#elif defined(HAVE_OPENSSL_VERSION)
+#elif defined(HAVE_OPENSSL_VERSION) && defined(OPENSSL_VERSION_STRING)
return msnprintf(buffer, size, "%s/%s",
OSSL_PACKAGE, OpenSSL_version(OPENSSL_VERSION_STRING));
#else