Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e666c459
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
8 个月 前同步成功
通知
8
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e666c459
编写于
6月 11, 2003
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add the possibility to have symbols loaded globally with DSO.
上级
98cec7fc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
1 deletion
+17
-1
CHANGES
CHANGES
+3
-0
crypto/dso/dso.h
crypto/dso/dso.h
+7
-0
crypto/dso/dso_dlfcn.c
crypto/dso/dso_dlfcn.c
+7
-1
未找到文件。
CHANGES
浏览文件 @
e666c459
...
...
@@ -4,6 +4,9 @@
Changes between 0.9.7c and 0.9.8 [xx XXX xxxx]
*) Add the possibility to load symbols globally with DSO.
[Götz Babin-Ebell <babin-ebell@trustcenter.de> via Richard Levitte]
*) Add the functions ERR_set_mark() and ERR_pop_to_mark() for better
control of the error stack.
[Richard Levitte]
...
...
crypto/dso/dso.h
浏览文件 @
e666c459
...
...
@@ -95,6 +95,13 @@ extern "C" {
*/
#define DSO_FLAG_UPCASE_SYMBOL 0x10
/* This flag loads the library with public symbols.
* Meaning: The exported symbols of this library are public
* to all libraries loaded after this library.
* At the moment only implemented in unix.
*/
#define DSO_FLAG_GLOBAL_SYMBOLS 0x20
typedef
void
(
*
DSO_FUNC_TYPE
)(
void
);
...
...
crypto/dso/dso_dlfcn.c
浏览文件 @
e666c459
...
...
@@ -140,13 +140,19 @@ static int dlfcn_load(DSO *dso)
void
*
ptr
=
NULL
;
/* See applicable comments in dso_dl.c */
char
*
filename
=
DSO_convert_filename
(
dso
,
NULL
);
int
flags
=
DLOPEN_FLAG
;
if
(
filename
==
NULL
)
{
DSOerr
(
DSO_F_DLFCN_LOAD
,
DSO_R_NO_FILENAME
);
goto
err
;
}
ptr
=
dlopen
(
filename
,
DLOPEN_FLAG
);
#ifdef RTLD_GLOBAL
if
(
dso
->
flags
&
DSO_FLAG_GLOBAL_SYMBOLS
)
flags
|=
RTLD_GLOBAL
;
#endif
ptr
=
dlopen
(
filename
,
flags
);
if
(
ptr
==
NULL
)
{
DSOerr
(
DSO_F_DLFCN_LOAD
,
DSO_R_LOAD_FAILED
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录