summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/VBox/VBoxRTDeps.cpp
blob: 76cb7a2cc2cb7fd9a037af9b8ed034907d73793b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/* $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 <VBox/sup.h>
#include <iprt/asm.h>
#include <iprt/assert.h>
#include <iprt/localipc.h>
#include <iprt/buildconfig.h>
#include <iprt/system.h>

#include <libxml/catalog.h>
#include <libxml/globals.h>
#ifdef RT_OS_WINDOWS
# include <iprt/win/windows.h>
#endif
#include "internal/openssl-pre.h"
#include <openssl/md5.h>
#include <openssl/rc4.h>
#include <openssl/pem.h> /* drags in Windows.h */
#include <openssl/x509.h>
#include <openssl/rsa.h>
#include <openssl/ssl.h>
#include <openssl/rand.h>
#include <openssl/aes.h>
#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 }
};