Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6017a551
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
6017a551
编写于
7月 15, 2014
作者:
M
Mike Bland
提交者:
Matt Caswell
7月 19, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use testutil registry in heartbeat_test
Reviewed-by:
N
Tim Hudson
<
tjh@openssl.org
>
上级
5e3de8e6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
28 deletion
+21
-28
ssl/heartbeat_test.c
ssl/heartbeat_test.c
+13
-22
test/Makefile
test/Makefile
+8
-6
未找到文件。
ssl/heartbeat_test.c
浏览文件 @
6017a551
...
...
@@ -429,33 +429,24 @@ static int test_tls1_heartbleed_empty_payload()
int
main
(
int
argc
,
char
*
argv
[])
{
int
num_failed
;
int
result
=
0
;
SSL_library_init
();
SSL_load_error_strings
();
num_failed
=
test_dtls1_not_bleeding
()
+
test_dtls1_not_bleeding_empty_payload
()
+
test_dtls1_heartbleed
()
+
test_dtls1_heartbleed_empty_payload
()
+
/* The following test causes an assertion failure at
* ssl/d1_pkt.c:dtls1_write_bytes() in versions prior to 1.0.1g: */
(
OPENSSL_VERSION_NUMBER
>=
0x1000107fL
?
test_dtls1_heartbleed_excessive_plaintext_length
()
:
0
)
+
test_tls1_not_bleeding
()
+
test_tls1_not_bleeding_empty_payload
()
+
test_tls1_heartbleed
()
+
test_tls1_heartbleed_empty_payload
()
+
0
;
ADD_TEST
(
test_dtls1_not_bleeding
);
ADD_TEST
(
test_dtls1_not_bleeding_empty_payload
);
ADD_TEST
(
test_dtls1_heartbleed
);
ADD_TEST
(
test_dtls1_heartbleed_empty_payload
);
ADD_TEST
(
test_dtls1_heartbleed_excessive_plaintext_length
);
ADD_TEST
(
test_tls1_not_bleeding
);
ADD_TEST
(
test_tls1_not_bleeding_empty_payload
);
ADD_TEST
(
test_tls1_heartbleed
);
ADD_TEST
(
test_tls1_heartbleed_empty_payload
);
result
=
run_tests
(
argv
[
0
]);
ERR_print_errors_fp
(
stderr
);
if
(
num_failed
!=
0
)
{
printf
(
"%d test%s failed
\n
"
,
num_failed
,
num_failed
!=
1
?
"s"
:
""
);
return
EXIT_FAILURE
;
}
return
EXIT_SUCCESS
;
return
result
;
}
#else
/* OPENSSL_NO_HEARTBEATS*/
...
...
test/Makefile
浏览文件 @
6017a551
...
...
@@ -129,7 +129,8 @@ OBJ= $(BNTEST).o $(ECTEST).o $(ECDSATEST).o $(ECDHTEST).o $(IDEATEST).o \
$(FIPS_TEST_SUITE)
.o
$(FIPS_DHVS)
.o
$(FIPS_ECDSAVS)
.o
\
$(FIPS_ECDHVS)
.o
$(FIPS_CMACTEST)
.o
$(FIPS_ALGVS)
.o
\
$(EVPTEST)
.o
$(IGETEST)
.o
$(JPAKETEST)
.o
$(V3NAMETEST)
.o
\
$(GOST2814789TEST)
.o
$(HEARTBEATTEST)
.o
$(P5_CRPT2_TEST)
.o
$(GOST2814789TEST)
.o
$(HEARTBEATTEST)
.o
$(P5_CRPT2_TEST)
.o
\
testutil.o
SRC
=
$(BNTEST)
.c
$(ECTEST)
.c
$(ECDSATEST)
.c
$(ECDHTEST)
.c
$(IDEATEST)
.c
\
$(MD2TEST)
.c
$(MD4TEST)
.c
$(MD5TEST)
.c
\
...
...
@@ -145,7 +146,8 @@ SRC= $(BNTEST).c $(ECTEST).c $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \
$(FIPS_TEST_SUITE)
.c
$(FIPS_DHVS)
.c
$(FIPS_ECDSAVS)
.c
\
$(FIPS_ECDHVS)
.c
$(FIPS_CMACTEST)
.c
$(FIPS_ALGVS)
.c
\
$(EVPTEST)
.c
$(IGETEST)
.c
$(JPAKETEST)
.c
$(V3NAMETEST)
.c
\
$(GOST2814789TEST)
.c
$(HEARTBEATTEST)
.c
$(P5_CRPT2_TEST)
.c
$(GOST2814789TEST)
.c
$(HEARTBEATTEST)
.c
$(P5_CRPT2_TEST)
.c
\
testutil.c
EXHEADER
=
HEADER
=
$(EXHEADER)
...
...
@@ -416,14 +418,14 @@ BUILD_CMD=shlib_target=; if [ -n "$(SHARED_LIBS)" ]; then \
fi
;
\
LIBRARIES
=
"
$(LIBSSL)
$(LIBCRYPTO)
$(LIBKRB5)
"
;
\
$(MAKE)
-f
$(TOP)
/Makefile.shared
-e
\
APPNAME
=
$$
target
$(EXE_EXT)
OBJECTS
=
"
$$
target.o"
\
APPNAME
=
$$
target
$(EXE_EXT)
OBJECTS
=
"
$$
target.o
$$
testutil
"
\
LIBDEPS
=
"
$(PEX_LIBS)
$$
LIBRARIES
$(EX_LIBS)
"
\
link_app.
$
${shlib_target}
BUILD_CMD_STATIC
=
shlib_target
=
;
\
LIBRARIES
=
"
$(DLIBSSL)
$(DLIBCRYPTO)
$(LIBKRB5)
"
;
\
$(MAKE)
-f
$(TOP)
/Makefile.shared
-e
\
APPNAME
=
$$
target
$(EXE_EXT)
OBJECTS
=
"
$$
target.o"
\
APPNAME
=
$$
target
$(EXE_EXT)
OBJECTS
=
"
$$
target.o
$$
testutil
"
\
LIBDEPS
=
"
$(PEX_LIBS)
$$
LIBRARIES
$(EX_LIBS)
"
\
link_app.
$
${shlib_target}
...
...
@@ -624,8 +626,8 @@ $(SRPTEST)$(EXE_EXT): $(SRPTEST).o $(DLIBCRYPTO)
$(V3NAMETEST)$(EXE_EXT)
:
$(V3NAMETEST).o $(DLIBCRYPTO)
@
target
=
$(V3NAMETEST)
;
$(BUILD_CMD)
$(HEARTBEATTEST)$(EXE_EXT)
:
$(HEARTBEATTEST).o $(DLIBCRYPTO)
@
target
=
$(HEARTBEATTEST)
;
$(BUILD_CMD_STATIC)
$(HEARTBEATTEST)$(EXE_EXT)
:
$(HEARTBEATTEST).o $(DLIBCRYPTO)
testutil.o
@
target
=
$(HEARTBEATTEST)
testutil
=
testutil.o
;
$(BUILD_CMD_STATIC)
#$(AESTEST).o: $(AESTEST).c
# $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录