aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2016-09-08 13:14:46 +0800
committerjkim <jkim@FreeBSD.org>2016-09-08 13:14:46 +0800
commitf742a4db4bdefe638a9c82bfea1e3cac0f335741 (patch)
tree72dc9f5efaee545482b868e7819cacbafef5ca93 /emulators
parent1097dfbf69b9872f1ef41e5e126cf118962c9f76 (diff)
downloadfreebsd-ports-gnome-f742a4db4bdefe638a9c82bfea1e3cac0f335741.tar.gz
freebsd-ports-gnome-f742a4db4bdefe638a9c82bfea1e3cac0f335741.tar.zst
freebsd-ports-gnome-f742a4db4bdefe638a9c82bfea1e3cac0f335741.zip
Attempt to fix build with LibreSSL.
PR: 212473
Diffstat (limited to 'emulators')
-rw-r--r--emulators/virtualbox-ose/files/patch-src_VBox_Runtime_common_crypto_digest-builtin.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose/files/patch-src_VBox_Runtime_common_crypto_digest-builtin.cpp b/emulators/virtualbox-ose/files/patch-src_VBox_Runtime_common_crypto_digest-builtin.cpp
new file mode 100644
index 000000000000..2872176f2bdf
--- /dev/null
+++ b/emulators/virtualbox-ose/files/patch-src_VBox_Runtime_common_crypto_digest-builtin.cpp
@@ -0,0 +1,45 @@
+--- src/VBox/Runtime/common/crypto/digest-builtin.cpp.orig 2016-08-16 20:00:25 UTC
++++ src/VBox/Runtime/common/crypto/digest-builtin.cpp
+@@ -561,7 +561,7 @@ static PCRTCRDIGESTDESC const g_apDigest
+ * OpenSSL EVP.
+ */
+
+-# if OPENSSL_VERSION_NUMBER >= 0x10100000
++# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
+ /** @impl_interface_method{RTCRDIGESTDESC::pfnNew} */
+ static DECLCALLBACK(void*) rtCrDigestOsslEvp_New(void)
+ {
+@@ -597,7 +597,7 @@ static DECLCALLBACK(int) rtCrDigestOsslE
+ if (fReInit)
+ {
+ pEvpType = EVP_MD_CTX_md(pThis);
+-# if OPENSSL_VERSION_NUMBER >= 0x10100000
++# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
+ EVP_MD_CTX_reset(pThis);
+ # else
+ EVP_MD_CTX_cleanup(pThis);
+@@ -616,7 +616,7 @@ static DECLCALLBACK(int) rtCrDigestOsslE
+ static DECLCALLBACK(void) rtCrDigestOsslEvp_Delete(void *pvState)
+ {
+ EVP_MD_CTX *pThis = (EVP_MD_CTX *)pvState;
+-# if OPENSSL_VERSION_NUMBER >= 0x10100000
++# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
+ EVP_MD_CTX_reset(pThis);
+ # else
+ EVP_MD_CTX_cleanup(pThis);
+@@ -661,13 +661,13 @@ static RTCRDIGESTDESC const g_rtCrDigest
+ NULL,
+ RTDIGESTTYPE_UNKNOWN,
+ EVP_MAX_MD_SIZE,
+-# if OPENSSL_VERSION_NUMBER >= 0x10100000
++# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
+ 0,
+ # else
+ sizeof(EVP_MD_CTX),
+ # endif
+ 0,
+-# if OPENSSL_VERSION_NUMBER >= 0x10100000
++# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
+ rtCrDigestOsslEvp_New,
+ rtCrDigestOsslEvp_Free,
+ # else