VirtualBox

Ignore:
Timestamp:
Feb 12, 2019 7:25:10 AM (6 years ago)
Author:
vboxsync
Message:

Runtime: Fix compilation with LibreSSL <2.7.0.
BIO_up_ref() was provided since LibreSSL-2.7.0.
When 2.6.x is used we get an error:

src/VBox/Runtime/common/crypto/ssl-openssl.cpp:275:17: error: ‘BIO_up_ref’ was not declared in this scope

BIO_up_ref(pSession->pBio); /* our reference. */
~

See also: https://bugs.gentoo.org/673800
The patch is submitted under MIT license.
Thank you Stefan Strogin for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/ssl-openssl.cpp

    r76553 r77270  
    273273            if (pSession->pBio)
    274274            {
    275 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     275# if (OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)) || LIBRESSL_VERSION_NUMBER >= 0x2070000f
    276276                BIO_up_ref(pSession->pBio); /* our reference. */
    277277# endif
     
    321321    SSL_free(pThis->pSsl);
    322322    pThis->pSsl = NULL;
    323 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     323# if (OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)) || LIBRESSL_VERSION_NUMBER >= 0x2070000f
    324324    BIO_free(pThis->pBio);
    325325# endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette