commit 8a40554f076c484a37f777ba2fff008810349b0f
Author:     Klemens Nanni <[email protected]>
AuthorDate: Fri May 18 15:11:15 2018 +0200
Commit:     Oswald Buddenhagen <[email protected]>
CommitDate: Sun Jul 1 12:44:19 2018 +0200

    User functions provided by recent LibreSSL versions
    
    At least on OpenBSD, this enables new APIs out of the box provided by
    LibreSSL 2.7.1 and higher.
    
    From Jeremie Courreges-Anglas <[email protected]>.

 src/socket.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/socket.c b/src/socket.c
index 9112dac..dd79619 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -40,7 +40,8 @@
 # include <openssl/ssl.h>
 # include <openssl/err.h>
 # include <openssl/x509v3.h>
-# if OPENSSL_VERSION_NUMBER < 0x10100000L
+# if OPENSSL_VERSION_NUMBER < 0x10100000L \
+       || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 
0x2070100fL)
 #  define X509_OBJECT_get0_X509(o) ((o)->data.x509)
 #  define X509_STORE_get0_objects(o) ((o)->objs)
 # endif

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to