Fix build with libressl

PR:		221498
Submitted by:	pkubaj@anongoth.pl
This commit is contained in:
Emanuel Haupt 2017-08-14 00:07:50 +00:00
parent c2339890f4
commit 2c0021d63e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447924

View file

@ -0,0 +1,11 @@
--- src/socket.c.orig 2017-08-13 23:04:40 UTC
+++ src/socket.c
@@ -40,7 +40,7 @@
# 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)
# define X509_OBJECT_get0_X509(o) ((o)->data.x509)
# define X509_STORE_get0_objects(o) ((o)->objs)
# endif