Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
51175595
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
51175595
编写于
4月 06, 2000
作者:
G
Geoff Thorpe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Constification, and a silly mistake in the comments.
上级
eca57e92
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
20 addition
and
20 deletion
+20
-20
crypto/dso/dso.h
crypto/dso/dso.h
+6
-6
crypto/dso/dso_dl.c
crypto/dso/dso_dl.c
+4
-4
crypto/dso/dso_dlfcn.c
crypto/dso/dso_dlfcn.c
+4
-4
crypto/dso/dso_lib.c
crypto/dso/dso_lib.c
+2
-2
crypto/dso/dso_win32.c
crypto/dso/dso_win32.c
+4
-4
未找到文件。
crypto/dso/dso.h
浏览文件 @
51175595
...
...
@@ -72,11 +72,11 @@ typedef struct dso_meth_st
{
const
char
*
name
;
/* Loads a shared library */
int
(
*
dso_load
)(
DSO
*
dso
,
char
*
filename
);
int
(
*
dso_load
)(
DSO
*
dso
,
c
onst
c
har
*
filename
);
/* Unloads a shared library */
int
(
*
dso_unload
)(
DSO
*
dso
);
/* Binds a function, variable, or whatever */
int
(
*
dso_bind
)(
DSO
*
dso
,
char
*
symname
,
void
**
symptr
);
int
(
*
dso_bind
)(
DSO
*
dso
,
c
onst
c
har
*
symname
,
void
**
symptr
);
/* I don't think this would actually be used in any circumstances. */
#if 0
...
...
@@ -120,13 +120,13 @@ DSO_METHOD *DSO_get_method(DSO *dso);
DSO_METHOD
*
DSO_set_method
(
DSO
*
dso
,
DSO_METHOD
*
meth
);
/* The all-singing all-dancing load function, you normally pass NULL
* for the
last two parameters. Use DSO_up and DSO_free for reference
* count handling. */
DSO
*
DSO_load
(
DSO
*
dso
,
char
*
filename
,
DSO_METHOD
*
meth
);
* for the
first and third parameters. Use DSO_up and DSO_free for
*
reference
count handling. */
DSO
*
DSO_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
,
DSO_METHOD
*
meth
);
/* This function binds to a function, variable, whatever inside a
* shared library. */
void
*
DSO_bind
(
DSO
*
dso
,
char
*
symname
);
void
*
DSO_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
);
/* This method is the default, but will beg, borrow, or steal whatever
* method should be the default on any particular platform (including
...
...
crypto/dso/dso_dl.c
浏览文件 @
51175595
...
...
@@ -69,9 +69,9 @@ DSO_METHOD *DSO_METHOD_dl(void)
#include <dl.h>
static
int
dl_load
(
DSO
*
dso
,
char
*
filename
);
static
int
dl_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
);
static
int
dl_unload
(
DSO
*
dso
);
static
int
dl_bind
(
DSO
*
dso
,
char
*
symname
,
void
**
symptr
);
static
int
dl_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
,
void
**
symptr
);
#if 0
static int dl_unbind(DSO *dso, char *symname, void *symptr);
static int dl_init(DSO *dso);
...
...
@@ -102,7 +102,7 @@ DSO_METHOD *DSO_METHOD_dl(void)
* type so the cast is safe.
*/
static
int
dl_load
(
DSO
*
dso
,
char
*
filename
)
static
int
dl_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
)
{
shl_t
ptr
;
...
...
@@ -148,7 +148,7 @@ static int dl_unload(DSO *dso)
return
(
1
);
}
static
int
dl_bind
(
DSO
*
dso
,
char
*
symname
,
void
**
symptr
)
static
int
dl_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
,
void
**
symptr
)
{
shl_t
ptr
;
void
*
sym
;
...
...
crypto/dso/dso_dlfcn.c
浏览文件 @
51175595
...
...
@@ -71,9 +71,9 @@ DSO_METHOD *DSO_METHOD_dlfcn(void)
#include <dlfcn.h>
#endif
static
int
dlfcn_load
(
DSO
*
dso
,
char
*
filename
);
static
int
dlfcn_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
);
static
int
dlfcn_unload
(
DSO
*
dso
);
static
int
dlfcn_bind
(
DSO
*
dso
,
char
*
symname
,
void
**
symptr
);
static
int
dlfcn_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
,
void
**
symptr
);
#if 0
static int dlfcn_unbind(DSO *dso, char *symname, void *symptr);
static int dlfcn_init(DSO *dso);
...
...
@@ -102,7 +102,7 @@ DSO_METHOD *DSO_METHOD_dlfcn(void)
* (i) the handle (void*) returned from dlopen().
*/
static
int
dlfcn_load
(
DSO
*
dso
,
char
*
filename
)
static
int
dlfcn_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
)
{
void
*
ptr
;
...
...
@@ -148,7 +148,7 @@ static int dlfcn_unload(DSO *dso)
return
(
1
);
}
static
int
dlfcn_bind
(
DSO
*
dso
,
char
*
symname
,
void
**
symptr
)
static
int
dlfcn_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
,
void
**
symptr
)
{
void
*
ptr
,
*
sym
;
...
...
crypto/dso/dso_lib.c
浏览文件 @
51175595
...
...
@@ -187,7 +187,7 @@ int DSO_up(DSO *dso)
return
(
1
);
}
DSO
*
DSO_load
(
DSO
*
dso
,
char
*
filename
,
DSO_METHOD
*
meth
)
DSO
*
DSO_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
,
DSO_METHOD
*
meth
)
{
DSO
*
ret
;
int
allocated
=
0
;
...
...
@@ -227,7 +227,7 @@ DSO *DSO_load(DSO *dso, char *filename, DSO_METHOD *meth)
return
(
ret
);
}
void
*
DSO_bind
(
DSO
*
dso
,
char
*
symname
)
void
*
DSO_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
)
{
void
*
ret
=
NULL
;
...
...
crypto/dso/dso_win32.c
浏览文件 @
51175595
...
...
@@ -67,9 +67,9 @@ DSO_METHOD *DSO_METHOD_win32(void)
}
#else
static
int
win32_load
(
DSO
*
dso
,
char
*
filename
);
static
int
win32_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
);
static
int
win32_unload
(
DSO
*
dso
);
static
int
win32_bind
(
DSO
*
dso
,
char
*
symname
,
void
**
symptr
);
static
int
win32_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
,
void
**
symptr
);
#if 0
static int win32_unbind(DSO *dso, char *symname, void *symptr);
static int win32_init(DSO *dso);
...
...
@@ -99,7 +99,7 @@ DSO_METHOD *DSO_METHOD_win32(void)
* LoadLibrary(), and copied.
*/
static
int
win32_load
(
DSO
*
dso
,
char
*
filename
)
static
int
win32_load
(
DSO
*
dso
,
c
onst
c
har
*
filename
)
{
HINSTANCE
h
,
*
p
;
...
...
@@ -159,7 +159,7 @@ static int win32_unload(DSO *dso)
return
(
1
);
}
static
int
win32_bind
(
DSO
*
dso
,
char
*
symname
,
void
**
symptr
)
static
int
win32_bind
(
DSO
*
dso
,
c
onst
c
har
*
symname
,
void
**
symptr
)
{
HINSTANCE
*
ptr
;
void
*
sym
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录