summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-01-17 23:20:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-01-17 23:20:00 +0100
commit799704ce84ecbaf0950ca632468bf1f4df60adb1 (patch)
tree3761ce03303bf3f80b74b1894e579e82a4d999e7
parent2c0c4dff083f9b258c18456567cf15fa32e3acd7 (diff)
downloadcurl-bagder/libressl-follow-up.tar.gz
openssl: fix the libressl build againbagder/libressl-follow-up
Follow-up to 84fcaa2e7. libressl does not have the API even if it says it is late OpenSSL version... Fixes #2246 Reported-by: jungle-boogie on github
-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 ca556810a..135e3ac54 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -259,7 +259,7 @@ static void tap_ssl_key(const SSL *ssl, ssl_tap_state_t *state)
if(!session || !keylog_file_fp)
return;
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
/* ssl->s3 is not checked in openssl 1.1.0-pre6, but let's assume that
* we have a valid SSL context if we have a non-NULL session. */
SSL_get_client_random(ssl, client_random, SSL3_RANDOM_SIZE);