提交 16abbd11 编写于 作者: M Matt Caswell

Fix test_sslversions to know that TLSv1.3 sets record version to TLSv1.0

This also acts as a test for the bug fixed in the previous commit.
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2157)
上级 d24c6a34
...@@ -87,7 +87,8 @@ $testtype = REVERSE_ORDER_VERSIONS; ...@@ -87,7 +87,8 @@ $testtype = REVERSE_ORDER_VERSIONS;
$proxy->start(); $proxy->start();
$record = pop @{$proxy->record_list}; $record = pop @{$proxy->record_list};
ok(TLSProxy::Message->success() ok(TLSProxy::Message->success()
&& $record->version() == TLSProxy::Record::VERS_TLS_1_3, && $record->version() == TLSProxy::Record::VERS_TLS_1_0
&& TLSProxy::Proxy->is_tls13(),
"Reverse order versions"); "Reverse order versions");
#Test 6: no TLSv1.3 or TLSv1.2 version in supported versions extension, but #Test 6: no TLSv1.3 or TLSv1.2 version in supported versions extension, but
...@@ -106,7 +107,8 @@ $testtype = WITH_TLS1_4; ...@@ -106,7 +107,8 @@ $testtype = WITH_TLS1_4;
$proxy->start(); $proxy->start();
$record = pop @{$proxy->record_list}; $record = pop @{$proxy->record_list};
ok(TLSProxy::Message->success() ok(TLSProxy::Message->success()
&& $record->version() == TLSProxy::Record::VERS_TLS_1_3, && $record->version() == TLSProxy::Record::VERS_TLS_1_0
&& TLSProxy::Proxy->is_tls13(),
"TLS1.4 in supported versions extension"); "TLS1.4 in supported versions extension");
sub modify_supported_versions_filter sub modify_supported_versions_filter
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册