Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2018 13:35:06 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465590 - head/lang/ruby25/files
Message-ID:  <201803261335.w2QDZ6ZI005746@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Mar 26 13:35:06 2018
New Revision: 465590
URL: https://svnweb.freebsd.org/changeset/ports/465590

Log:
  lang/ruby25: fix build with LibreSSL 2.7
  
  PR:		226852
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>

Added:
  head/lang/ruby25/files/patch-ext_openssl_openssl__missing.h   (contents, props changed)

Added: head/lang/ruby25/files/patch-ext_openssl_openssl__missing.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/ruby25/files/patch-ext_openssl_openssl__missing.h	Mon Mar 26 13:35:06 2018	(r465590)
@@ -0,0 +1,28 @@
+--- ext/openssl/openssl_missing.h.orig	2018-03-22 19:37:19 UTC
++++ ext/openssl/openssl_missing.h
+@@ -72,6 +72,9 @@ void ossl_HMAC_CTX_free(HMAC_CTX *);
+ #if !defined(HAVE_X509_STORE_SET_EX_DATA)
+ #  define X509_STORE_set_ex_data(x, idx, data) \
+ 	CRYPTO_set_ex_data(&(x)->ex_data, (idx), (data))
++#endif
++
++#if !defined(HAVE_X509_STORE_GET_EX_NEW_INDEX)
+ #  define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \
+ 	CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, (l), (p), \
+ 				(newf), (dupf), (freef))
+@@ -145,6 +148,7 @@ void ossl_X509_REQ_get0_signature(const 
+ #endif
+ 
+ #if !defined(HAVE_OPAQUE_OPENSSL)
++#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
+ #define IMPL_PKEY_GETTER(_type, _name) \
+ static inline _type *EVP_PKEY_get0_##_type(EVP_PKEY *pkey) { \
+ 	return pkey->pkey._name; }
+@@ -196,6 +200,7 @@ IMPL_PKEY_GETTER(EC_KEY, ec)
+ #undef IMPL_PKEY_GETTER
+ #undef IMPL_KEY_ACCESSOR2
+ #undef IMPL_KEY_ACCESSOR3
++#endif
+ #endif /* HAVE_OPAQUE_OPENSSL */
+ 
+ #if !defined(EVP_CTRL_AEAD_GET_TAG)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803261335.w2QDZ6ZI005746>