/* $Id$ */ /** @file * IPRT - VBoxRT.dll/so dependencies. */ /* * Copyright (C) 2006-2022 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. * * The contents of this file may alternatively be used under the terms * of the Common Development and Distribution License Version 1.0 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the * VirtualBox OSE distribution, in which case the provisions of the * CDDL are applicable instead of those of the GPL. * * You may elect to license modified versions of this file under the * terms and conditions of either the GPL or the CDDL or both. */ /********************************************************************************************************************************* * Header Files * *********************************************************************************************************************************/ #include #include #include #include #include #include #include #include #ifdef RT_OS_WINDOWS # include #endif #include "internal/openssl-pre.h" #include #include #include /* drags in Windows.h */ #include #include #include #include #include #include "internal/openssl-post.h" /********************************************************************************************************************************* * Global Variables * *********************************************************************************************************************************/ struct CLANG11NONSENSE { PFNRT pfn; } g_VBoxRTDeps[] = { { (PFNRT)SUPR3Init }, { (PFNRT)SUPR3PageAllocEx }, { (PFNRT)SUPR3LoadVMM }, { (PFNRT)SUPSemEventCreate }, { (PFNRT)SUPIsTscFreqCompatibleEx }, #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) { (PFNRT)SUPTracerFireProbe }, /** @todo port me @bugref{9898} ? */ { (PFNRT)SUPGetTscDeltaSlow }, #endif { (PFNRT)xmlLoadCatalogs }, { (PFNRT)RTLocalIpcServerCreate }, { (PFNRT)MD5_Init }, { (PFNRT)RC4 }, { (PFNRT)RC4_set_key }, { (PFNRT)PEM_read_bio_X509 }, { (PFNRT)PEM_read_bio_PrivateKey }, { (PFNRT)X509_free }, { (PFNRT)X509_verify_cert_error_string }, { (PFNRT)i2d_X509 }, { (PFNRT)i2d_X509 }, { (PFNRT)i2d_PublicKey }, { (PFNRT)DH_generate_parameters_ex }, /* gsoap */ { (PFNRT)DH_new }, /* gsoap */ #if OPENSSL_VERSION_NUMBER >= 0x10100000 { (PFNRT)OpenSSL_version_num }, /* gsoap */ { (PFNRT)ASN1_STRING_get0_data }, /* gsoap */ #endif #if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) || defined(OPENSSL_MANGLER) { (PFNRT)RSA_generate_key }, /* gsoap */ #endif { (PFNRT)RSA_generate_key_ex }, #if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) || defined(OPENSSL_MANGLER) { (PFNRT)DH_generate_parameters }, /* gsoap */ #endif { (PFNRT)DH_generate_parameters_ex }, { (PFNRT)RAND_load_file }, #if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) { (PFNRT)CRYPTO_set_dynlock_create_callback }, { (PFNRT)CRYPTO_set_dynlock_lock_callback }, { (PFNRT)CRYPTO_set_dynlock_destroy_callback }, #endif { (PFNRT)RTAssertShouldPanic }, { (PFNRT)ASMAtomicReadU64 }, { (PFNRT)ASMAtomicCmpXchgU64 }, { (PFNRT)ASMBitFirstSet }, { (PFNRT)RTBldCfgRevision }, { (PFNRT)SSL_free }, #if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) { (PFNRT)SSL_library_init }, { (PFNRT)SSL_load_error_strings }, #endif { (PFNRT)SSL_CTX_free }, { (PFNRT)SSL_CTX_use_certificate_file }, { (PFNRT)SSLv23_method }, #if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) { (PFNRT)TLSv1_server_method }, #endif { (PFNRT)AES_ofb128_encrypt }, /* libtpms */ { NULL } };