提交 327d38d0 编写于 作者: R Richard Levitte

Don't test SRP when it's disabled

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2172)
上级 e0c47b2c
...@@ -363,18 +363,23 @@ SKIP: { ...@@ -363,18 +363,23 @@ SKIP: {
"NPN handshake test"); "NPN handshake test");
} }
#Test 20: SRP extension SKIP: {
#Note: We are not actually going to perform an SRP handshake (TLSProxy does not skip "No SRP support in this OpenSSL build", 1
#support it). However it is sufficient for us to check that the SRP extension if disabled("srp");
#gets added on the client side. There is no SRP extension generated on the
#server side anyway. #Test 20: SRP extension
$proxy->clear(); #Note: We are not actually going to perform an SRP handshake (TLSProxy
$proxy->clientflags("-no_tls1_3 -srpuser user -srppass pass:pass"); #does not support it). However it is sufficient for us to check that the
$proxy->start(); #SRP extension gets added on the client side. There is no SRP extension
checkhandshake($proxy, checkhandshake::DEFAULT_HANDSHAKE, #generated on the server side anyway.
checkhandshake::DEFAULT_EXTENSIONS $proxy->clear();
| checkhandshake::SRP_CLI_EXTENSION, $proxy->clientflags("-no_tls1_3 -srpuser user -srppass pass:pass");
"SRP extension test"); $proxy->start();
checkhandshake($proxy, checkhandshake::DEFAULT_HANDSHAKE,
checkhandshake::DEFAULT_EXTENSIONS
| checkhandshake::SRP_CLI_EXTENSION,
"SRP extension test");
}
#Test 21: EC handshake #Test 21: EC handshake
SKIP: { SKIP: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册