VirtualBox

Changeset 64012 in vbox for trunk


Ignore:
Timestamp:
Sep 26, 2016 2:30:17 PM (8 years ago)
Author:
vboxsync
Message:

Main/webservice: OpenSSL 1.1 adaptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r63861 r64012  
    5050#include <iprt/stream.h>
    5151#include <iprt/asm.h>
     52
     53#ifdef WITH_OPENSSL
     54# include <openssl/opensslv.h>
     55#endif
    5256
    5357#ifndef RT_OS_WINDOWS
     
    749753}
    750754
    751 #ifdef WITH_OPENSSL
     755#if defined(WITH_OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER))
    752756/****************************************************************************
    753757 *
    754  * OpenSSL convenience functions for multithread support
     758 * OpenSSL convenience functions for multithread support.
     759 * Not required for OpenSSL 1.1+
    755760 *
    756761 ****************************************************************************/
     
    854859    g_pSSLMutexes = NULL;
    855860}
    856 #endif /* WITH_OPENSSL */
     861#endif /* WITH_OPENSSL && (OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)) */
    857862
    858863/****************************************************************************
     
    864869static void doQueuesLoop()
    865870{
    866 #ifdef WITH_OPENSSL
     871#if defined(WITH_OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER))
    867872    if (g_fSSL && CRYPTO_thread_setup())
    868873    {
     
    870875        exit(RTEXITCODE_FAILURE);
    871876    }
    872 #endif /* WITH_OPENSSL */
     877#endif
    873878
    874879    // set up gSOAP
     
    965970    soap_done(&soap); // close master socket and detach environment
    966971
    967 #ifdef WITH_OPENSSL
     972#if defined(WITH_OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER))
    968973    if (g_fSSL)
    969974        CRYPTO_thread_cleanup();
    970 #endif /* WITH_OPENSSL */
     975#endif
    971976}
    972977
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