forked from pool/openssl-1_1
39 lines
1.9 KiB
Diff
39 lines
1.9 KiB
Diff
|
Index: openssl-1.1.1d/test/ssl_test.c
|
||
|
===================================================================
|
||
|
--- openssl-1.1.1d.orig/test/ssl_test.c
|
||
|
+++ openssl-1.1.1d/test/ssl_test.c
|
||
|
@@ -435,6 +440,7 @@ static int test_handshake(int idx)
|
||
|
#endif
|
||
|
if (test_ctx->method == SSL_TEST_METHOD_TLS) {
|
||
|
server_ctx = SSL_CTX_new(TLS_server_method());
|
||
|
+ SSL_CTX_set_security_level(server_ctx, 1);
|
||
|
if (!TEST_true(SSL_CTX_set_max_proto_version(server_ctx,
|
||
|
TLS_MAX_VERSION)))
|
||
|
goto err;
|
||
|
@@ -443,21 +449,25 @@ static int test_handshake(int idx)
|
||
|
SSL_TEST_SERVERNAME_CB_NONE) {
|
||
|
if (!TEST_ptr(server2_ctx = SSL_CTX_new(TLS_server_method())))
|
||
|
goto err;
|
||
|
+ SSL_CTX_set_security_level(server2_ctx, 1);
|
||
|
if (!TEST_true(SSL_CTX_set_max_proto_version(server2_ctx,
|
||
|
TLS_MAX_VERSION)))
|
||
|
goto err;
|
||
|
}
|
||
|
client_ctx = SSL_CTX_new(TLS_client_method());
|
||
|
+ SSL_CTX_set_security_level(client_ctx, 1);
|
||
|
if (!TEST_true(SSL_CTX_set_max_proto_version(client_ctx,
|
||
|
TLS_MAX_VERSION)))
|
||
|
goto err;
|
||
|
|
||
|
if (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RESUME) {
|
||
|
resume_server_ctx = SSL_CTX_new(TLS_server_method());
|
||
|
+ SSL_CTX_set_security_level(resume_server_ctx, 1);
|
||
|
if (!TEST_true(SSL_CTX_set_max_proto_version(resume_server_ctx,
|
||
|
TLS_MAX_VERSION)))
|
||
|
goto err;
|
||
|
resume_client_ctx = SSL_CTX_new(TLS_client_method());
|
||
|
+ SSL_CTX_set_security_level(resume_client_ctx, 1);
|
||
|
if (!TEST_true(SSL_CTX_set_max_proto_version(resume_client_ctx,
|
||
|
TLS_MAX_VERSION)))
|
||
|
goto err;
|