VirtualBox

Ignore:
Timestamp:
Sep 13, 2016 11:21:41 AM (8 years ago)
Author:
vboxsync
Message:

Runtime/crypto: allow to compile against libressl (thanks Jung-uk Kim)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/digest-builtin.cpp

    r62564 r63808  
    562562 */
    563563
    564 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     564# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
    565565/** @impl_interface_method{RTCRDIGESTDESC::pfnNew} */
    566566static DECLCALLBACK(void*) rtCrDigestOsslEvp_New(void)
     
    598598    {
    599599        pEvpType = EVP_MD_CTX_md(pThis);
    600 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     600# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER
    601601        EVP_MD_CTX_reset(pThis);
    602602# else
     
    617617{
    618618    EVP_MD_CTX *pThis = (EVP_MD_CTX *)pvState;
    619 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     619# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER
    620620    EVP_MD_CTX_reset(pThis);
    621621# else
     
    662662    RTDIGESTTYPE_UNKNOWN,
    663663    EVP_MAX_MD_SIZE,
    664 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     664# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER
    665665    0,
    666666# else
     
    668668# endif
    669669    0,
    670 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     670# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER
    671671    rtCrDigestOsslEvp_New,
    672672    rtCrDigestOsslEvp_Free,
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