Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
5a88a6ea
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
5a88a6ea
编写于
4月 10, 1999
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rid the world of more evil casts.
上级
215c24fc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
39 addition
and
39 deletion
+39
-39
crypto/crypto.h
crypto/crypto.h
+24
-24
crypto/mem.c
crypto/mem.c
+14
-14
crypto/objects/obj_dat.h
crypto/objects/obj_dat.h
+1
-1
未找到文件。
crypto/crypto.h
浏览文件 @
5a88a6ea
...
...
@@ -200,9 +200,9 @@ typedef struct crypto_ex_data_func_st
#define Remalloc(addr,num) \
CRYPTO_dbg_remalloc((char **)addr,(int)num,__FILE__,__LINE__)
#define FreeFunc CRYPTO_dbg_free
#define Free(addr) CRYPTO_dbg_free(
(char *)(addr)
)
#define Free(addr) CRYPTO_dbg_free(
addr
)
#define Malloc_locked(num) CRYPTO_malloc_locked((int)num)
#define Free_locked(addr) CRYPTO_free_locked(
(char *)(addr)
)
#define Free_locked(addr) CRYPTO_free_locked(
addr
)
#else
#define MemCheck_start()
#define MemCheck_stop()
...
...
@@ -211,18 +211,18 @@ typedef struct crypto_ex_data_func_st
#define Remalloc CRYPTO_remalloc
#if defined(WIN32) || defined(MFUNC)
#define Malloc CRYPTO_malloc
#define Realloc(a,n) CRYPTO_realloc(
(char *)(a)
,(n))
#define Realloc(a,n) CRYPTO_realloc(
a
,(n))
#define FreeFunc CRYPTO_free
#define Free(addr) CRYPTO_free(
(char *)(addr)
)
#define Free(addr) CRYPTO_free(
addr
)
#define Malloc_locked CRYPTO_malloc_locked
#define Free_locked(addr) CRYPTO_free_locked(
(char *)(addr)
)
#define Free_locked(addr) CRYPTO_free_locked(
addr
)
#else
#define Malloc malloc
#define Realloc realloc
#define FreeFunc free
#define Free(addr) free(
(char *)(addr)
)
#define Free(addr) free(
addr
)
#define Malloc_locked malloc
#define Free_locked(addr) free(
(char *)(addr)
)
#define Free_locked(addr) free(
addr
)
#endif
/* WIN32 || MFUNC */
#endif
/* MDEBUG */
...
...
@@ -266,17 +266,17 @@ void CRYPTO_get_mem_functions(char *(**m)(),char *(**r)(), void (**f)());
void
CRYPTO_set_locked_mem_functions
(
char
*
(
*
m
)(),
void
(
*
free_func
)());
void
CRYPTO_get_locked_mem_functions
(
char
*
(
**
m
)(),
void
(
**
f
)());
char
*
CRYPTO_malloc_locked
(
int
num
);
void
CRYPTO_free_locked
(
char
*
);
char
*
CRYPTO_malloc
(
int
num
);
void
CRYPTO_free
(
char
*
);
char
*
CRYPTO_realloc
(
char
*
addr
,
int
num
);
char
*
CRYPTO_remalloc
(
char
*
addr
,
int
num
);
char
*
CRYPTO_dbg_malloc
(
int
num
,
char
*
file
,
int
line
);
char
*
CRYPTO_dbg_realloc
(
char
*
addr
,
int
num
,
char
*
file
,
int
line
);
void
CRYPTO_dbg_free
(
char
*
);
char
*
CRYPTO_dbg_remalloc
(
char
*
addr
,
int
num
,
char
*
file
,
int
line
);
void
*
CRYPTO_malloc_locked
(
int
num
);
void
CRYPTO_free_locked
(
void
*
);
void
*
CRYPTO_malloc
(
int
num
);
void
CRYPTO_free
(
void
*
);
void
*
CRYPTO_realloc
(
void
*
addr
,
int
num
);
void
*
CRYPTO_remalloc
(
void
*
addr
,
int
num
);
void
*
CRYPTO_dbg_malloc
(
int
num
,
char
*
file
,
int
line
);
void
*
CRYPTO_dbg_realloc
(
void
*
addr
,
int
num
,
char
*
file
,
int
line
);
void
CRYPTO_dbg_free
(
void
*
);
void
*
CRYPTO_dbg_remalloc
(
void
*
addr
,
int
num
,
char
*
file
,
int
line
);
#ifndef NO_FP_API
void
CRYPTO_mem_leaks_fp
(
FILE
*
);
#endif
...
...
@@ -313,13 +313,13 @@ int CRYPTO_add_lock();
void
CRYPTO_set_mem_functions
();
void
CRYPTO_get_mem_functions
();
char
*
CRYPTO_malloc
();
char
*
CRYPTO_realloc
();
void
*
CRYPTO_malloc
();
void
*
CRYPTO_realloc
();
void
CRYPTO_free
();
char
*
CRYPTO_remalloc
();
char
*
CRYPTO_dbg_remalloc
();
char
*
CRYPTO_dbg_malloc
();
char
*
CRYPTO_dbg_realloc
();
void
*
CRYPTO_remalloc
();
void
*
CRYPTO_dbg_remalloc
();
void
*
CRYPTO_dbg_malloc
();
void
*
CRYPTO_dbg_realloc
();
void
CRYPTO_dbg_free
();
#ifndef NO_FP_API
void
CRYPTO_mem_leaks_fp
();
...
...
crypto/mem.c
浏览文件 @
5a88a6ea
...
...
@@ -172,39 +172,39 @@ void (**f)();
if
(
f
!=
NULL
)
*
f
=
free_locked_func
;
}
char
*
CRYPTO_malloc_locked
(
num
)
void
*
CRYPTO_malloc_locked
(
num
)
int
num
;
{
return
(
malloc_locked_func
(
num
));
}
void
CRYPTO_free_locked
(
str
)
char
*
str
;
void
*
str
;
{
free_locked_func
(
str
);
}
char
*
CRYPTO_malloc
(
num
)
void
*
CRYPTO_malloc
(
num
)
int
num
;
{
return
(
malloc_func
(
num
));
}
char
*
CRYPTO_realloc
(
str
,
num
)
char
*
str
;
void
*
CRYPTO_realloc
(
str
,
num
)
void
*
str
;
int
num
;
{
return
(
realloc_func
(
str
,
num
));
}
void
CRYPTO_free
(
str
)
char
*
str
;
void
*
str
;
{
free_func
(
str
);
}
static
unsigned
long
break_order_num
=
0
;
char
*
CRYPTO_dbg_malloc
(
num
,
file
,
line
)
void
*
CRYPTO_dbg_malloc
(
num
,
file
,
line
)
int
num
;
char
*
file
;
int
line
;
...
...
@@ -259,7 +259,7 @@ err:
}
void
CRYPTO_dbg_free
(
addr
)
char
*
addr
;
void
*
addr
;
{
MEM
m
,
*
mp
;
...
...
@@ -277,8 +277,8 @@ char *addr;
free_func
(
addr
);
}
char
*
CRYPTO_dbg_realloc
(
addr
,
num
,
file
,
line
)
char
*
addr
;
void
*
CRYPTO_dbg_realloc
(
addr
,
num
,
file
,
line
)
void
*
addr
;
int
num
;
char
*
file
;
int
line
;
...
...
@@ -307,8 +307,8 @@ int line;
return
(
ret
);
}
char
*
CRYPTO_remalloc
(
a
,
n
)
char
*
a
;
void
*
CRYPTO_remalloc
(
a
,
n
)
void
*
a
;
int
n
;
{
if
(
a
!=
NULL
)
Free
(
a
);
...
...
@@ -316,8 +316,8 @@ int n;
return
(
a
);
}
char
*
CRYPTO_dbg_remalloc
(
a
,
n
,
file
,
line
)
char
*
a
;
void
*
CRYPTO_dbg_remalloc
(
a
,
n
,
file
,
line
)
void
*
a
;
int
n
;
char
*
file
;
int
line
;
...
...
crypto/objects/obj_dat.h
浏览文件 @
5a88a6ea
...
...
@@ -752,8 +752,8 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={
&
(
nid_objs
[
19
]),
/* OBJ_rsa 2 5 8 1 1 */
&
(
nid_objs
[
96
]),
/* OBJ_mdc2WithRSA 2 5 8 3 100 */
&
(
nid_objs
[
95
]),
/* OBJ_mdc2 2 5 8 3 101 */
&
(
nid_objs
[
124
]),
/* OBJ_rle_compression 1 1 1 1 666.1 */
&
(
nid_objs
[
125
]),
/* OBJ_zlib_compression 1 1 1 1 666.2 */
&
(
nid_objs
[
124
]),
/* OBJ_rle_compression 1 1 1 1 666.1 */
&
(
nid_objs
[
104
]),
/* OBJ_md5WithRSA 1 3 14 3 2 3 */
&
(
nid_objs
[
29
]),
/* OBJ_des_ecb 1 3 14 3 2 6 */
&
(
nid_objs
[
31
]),
/* OBJ_des_cbc 1 3 14 3 2 7 */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录