VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/test/simpledynamic.h@ 97673

最後變更 在這個檔案從97673是 94320,由 vboxsync 提交於 3 年 前

libs/openssl-3.0.1: Export to OSE and fix copyright headers in Makefiles, bugref:10128

檔案大小: 1.2 KB
 
1/*
2 * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#ifndef OSSL_TEST_SIMPLEDYNAMIC_H
11# define OSSL_TEST_SIMPLEDYNAMIC_H
12
13# include "crypto/dso_conf.h"
14
15# if defined(DSO_DLFCN) || defined(DSO_VMS)
16
17# include <dlfcn.h>
18
19# define SD_INIT NULL
20# ifdef DSO_VMS
21# define SD_SHLIB 0
22# define SD_MODULE 0
23# else
24# define SD_SHLIB (RTLD_GLOBAL|RTLD_LAZY)
25# define SD_MODULE (RTLD_LOCAL|RTLD_NOW)
26# endif
27
28typedef void *SD;
29typedef void *SD_SYM;
30
31# elif defined(DSO_WIN32)
32
33# include <windows.h>
34
35# define SD_INIT 0
36# define SD_SHLIB 0
37# define SD_MODULE 0
38
39typedef HINSTANCE SD;
40typedef void *SD_SYM;
41
42# endif
43
44# if defined(DSO_DLFCN) || defined(DSO_WIN32) || defined(DSO_VMS)
45int sd_load(const char *filename, SD *sd, int type);
46int sd_sym(SD sd, const char *symname, SD_SYM *sym);
47int sd_close(SD lib);
48const char *sd_error(void);
49# endif
50
51#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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