Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
541e9565
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看板
提交
541e9565
编写于
1月 14, 2016
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
If memory debugging enabled return error on leaks.
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
cc5a9ba4
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
34 addition
and
17 deletion
+34
-17
apps/openssl.c
apps/openssl.c
+2
-1
test/clienthellotest.c
test/clienthellotest.c
+2
-1
test/danetest.c
test/danetest.c
+2
-1
test/dsatest.c
test/dsatest.c
+2
-1
test/ecdhtest.c
test/ecdhtest.c
+2
-1
test/ecdsatest.c
test/ecdsatest.c
+2
-1
test/ectest.c
test/ectest.c
+2
-1
test/enginetest.c
test/enginetest.c
+2
-1
test/evp_extra_test.c
test/evp_extra_test.c
+2
-1
test/evp_test.c
test/evp_test.c
+2
-1
test/exptest.c
test/exptest.c
+2
-1
test/jpaketest.c
test/jpaketest.c
+2
-1
test/p5_crpt2_test.c
test/p5_crpt2_test.c
+2
-1
test/rsa_test.c
test/rsa_test.c
+2
-1
test/srptest.c
test/srptest.c
+2
-1
test/ssltest.c
test/ssltest.c
+2
-1
test/verify_extra_test.c
test/verify_extra_test.c
+2
-1
未找到文件。
apps/openssl.c
浏览文件 @
541e9565
...
...
@@ -429,7 +429,8 @@ int main(int argc, char *argv[])
BIO_free_all
(
bio_out
);
apps_shutdown
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
bio_err
);
if
(
CRYPTO_mem_leaks
(
bio_err
)
<=
0
)
ret
=
1
;
#endif
BIO_free
(
bio_err
);
EXIT
(
ret
);
...
...
test/clienthellotest.c
浏览文件 @
541e9565
...
...
@@ -217,7 +217,8 @@ int main(int argc, char *argv[])
EVP_cleanup
();
CRYPTO_cleanup_all_ex_data
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
err
);
if
(
CRYPTO_mem_leaks
(
err
)
<=
0
)
testresult
=
0
;
#endif
BIO_free
(
err
);
...
...
test/danetest.c
浏览文件 @
541e9565
...
...
@@ -526,7 +526,8 @@ end:
ERR_remove_thread_state
(
NULL
);
EVP_cleanup
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
bio_err
);
if
(
CRYPTO_mem_leaks
(
bio_err
)
<=
0
)
ret
=
1
;
#endif
BIO_free
(
bio_err
);
EXIT
(
ret
);
...
...
test/dsatest.c
浏览文件 @
541e9565
...
...
@@ -215,7 +215,8 @@ int main(int argc, char **argv)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
bio_err
);
if
(
CRYPTO_mem_leaks
(
bio_err
)
<=
0
)
ret
=
0
;
#endif
BIO_free
(
bio_err
);
bio_err
=
NULL
;
...
...
test/ecdhtest.c
浏览文件 @
541e9565
...
...
@@ -516,7 +516,8 @@ int main(int argc, char *argv[])
CRYPTO_cleanup_all_ex_data
();
ERR_remove_thread_state
(
NULL
);
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
ret
=
1
;
#endif
EXIT
(
ret
);
}
...
...
test/ecdsatest.c
浏览文件 @
541e9565
...
...
@@ -545,7 +545,8 @@ int main(void)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
out
);
if
(
CRYPTO_mem_leaks
(
out
)
<=
0
)
ret
=
1
;
#endif
BIO_free
(
out
);
return
ret
;
...
...
test/ectest.c
浏览文件 @
541e9565
...
...
@@ -1687,7 +1687,8 @@ int main(int argc, char *argv[])
ERR_free_strings
();
ERR_remove_thread_state
(
NULL
);
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
return
1
;
#endif
return
0
;
...
...
test/enginetest.c
浏览文件 @
541e9565
...
...
@@ -249,7 +249,8 @@ int main(int argc, char *argv[])
ERR_free_strings
();
ERR_remove_thread_state
(
NULL
);
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
to_return
=
1
;
#endif
return
to_return
;
}
...
...
test/evp_extra_test.c
浏览文件 @
541e9565
...
...
@@ -467,7 +467,8 @@ int main(void)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
return
1
;
#endif
printf
(
"PASS
\n
"
);
...
...
test/evp_test.c
浏览文件 @
541e9565
...
...
@@ -617,7 +617,8 @@ int main(int argc, char **argv)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
return
1
;
#endif
if
(
t
.
errors
)
return
1
;
...
...
test/exptest.c
浏览文件 @
541e9565
...
...
@@ -300,7 +300,8 @@ int main(int argc, char *argv[])
BN_CTX_free
(
ctx
);
ERR_remove_thread_state
(
NULL
);
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
out
);
if
(
CRYPTO_mem_leaks
(
out
)
<=
0
)
goto
err
;
#endif
BIO_free
(
out
);
printf
(
"
\n
"
);
...
...
test/jpaketest.c
浏览文件 @
541e9565
...
...
@@ -179,7 +179,8 @@ int main(int argc, char **argv)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
bio_err
);
if
(
CRYPTO_mem_leaks
(
bio_err
)
<=
0
)
return
1
;
#endif
return
0
;
...
...
test/p5_crpt2_test.c
浏览文件 @
541e9565
...
...
@@ -206,7 +206,8 @@ int main(int argc, char **argv)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
return
1
;
# endif
return
0
;
}
test/rsa_test.c
浏览文件 @
541e9565
...
...
@@ -328,7 +328,8 @@ int main(int argc, char *argv[])
ERR_remove_thread_state
(
NULL
);
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
err
=
1
;
#endif
# ifdef OPENSSL_SYS_NETWARE
...
...
test/srptest.c
浏览文件 @
541e9565
...
...
@@ -147,7 +147,8 @@ int main(int argc, char **argv)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
bio_err
);
if
(
CRYPTO_mem_leaks
(
bio_err
)
<=
0
)
return
1
;
#endif
BIO_free
(
bio_err
);
...
...
test/ssltest.c
浏览文件 @
541e9565
...
...
@@ -1865,7 +1865,8 @@ int main(int argc, char *argv[])
ERR_remove_thread_state
(
NULL
);
EVP_cleanup
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks
(
bio_err
);
if
(
CRYPTO_mem_leaks
(
bio_err
)
<=
0
)
ret
=
1
;
#endif
BIO_free
(
bio_err
);
EXIT
(
ret
);
...
...
test/verify_extra_test.c
浏览文件 @
541e9565
...
...
@@ -208,7 +208,8 @@ int main(int argc, char **argv)
ERR_remove_thread_state
(
NULL
);
ERR_free_strings
();
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks_fp
(
stderr
);
if
(
CRYPTO_mem_leaks_fp
(
stderr
)
<=
0
)
return
1
;
#endif
printf
(
"PASS
\n
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录