forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emulation/virtualbox: Fixed build against dev-libs/libressl.
Closes: https://bugs.gentoo.org/673800 Package-Manager: Portage-2.3.56, Repoman-2.3.12 Signed-off-by: Lars Wendler <[email protected]>
- Loading branch information
Lars Wendler
committed
Jan 16, 2019
1 parent
18fd4cd
commit 64ef1ea
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
app-emulation/virtualbox/files/virtualbox-6.0.0-libressl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
https://bugs.gentoo.org/673800 | ||
|
||
diff --git a/src/VBox/Runtime/common/crypto/ssl-openssl.cpp b/src/VBox/Runtime/common/crypto/ssl-openssl.cpp | ||
index e6d58b75..b2422983 100644 | ||
--- a/src/VBox/Runtime/common/crypto/ssl-openssl.cpp | ||
+++ b/src/VBox/Runtime/common/crypto/ssl-openssl.cpp | ||
@@ -271,7 +271,7 @@ RTDECL(int) RTCrSslCreateSessionForNativeSocket(RTCRSSL hSsl, RTHCINTPTR hNative | ||
pSession->pBio = BIO_new_socket(hNativeSocket, BIO_NOCLOSE); | ||
if (pSession->pBio) | ||
{ | ||
-# if OPENSSL_VERSION_NUMBER >= 0x10100000 | ||
+# if (OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)) || LIBRESSL_VERSION_NUMBER >= 0x2070000f | ||
BIO_up_ref(pSession->pBio); /* our reference. */ | ||
# endif | ||
SSL_set_bio(pSession->pSsl, pSession->pBio, pSession->pBio); | ||
@@ -319,7 +319,7 @@ static int rtCrSslSessionDestroy(RTCRSSLSESSIONINT *pThis) | ||
ASMAtomicWriteU32(&pThis->u32Magic, ~RTCRSSLSESSIONINT_MAGIC); | ||
SSL_free(pThis->pSsl); | ||
pThis->pSsl = NULL; | ||
-# if OPENSSL_VERSION_NUMBER >= 0x10100000 | ||
+# if (OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)) || LIBRESSL_VERSION_NUMBER >= 0x2070000f | ||
BIO_free(pThis->pBio); | ||
# endif | ||
pThis->pBio = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters