gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 116/125: openssl: fix the libressl build again


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 116/125: openssl: fix the libressl build again
Date: Sun, 21 Jan 2018 23:42:51 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit ca9c93e3e19f971030ec1da70c9e318ce493bffd
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Jan 17 23:20:00 2018 +0100

    openssl: fix the libressl build again
    
    Follow-up to 84fcaa2e7. libressl does not have the API even if it says it is
    late OpenSSL version...
    
    Fixes #2246
    Closes #2247
    
    Reported-by: jungle-boogie on github
---
 lib/vtls/openssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]