diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2026-05-14 00:42:14 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-05-14 13:59:53 +0900 |
| commit | 1fbf9abe85e36c442d43fae6be8b5573a959b971 (patch) | |
| tree | 578bbb8624e18ad2da92338d860ee4f08340608f /test/openssl/test_ssl.rb | |
| parent | 0c2dcf4815800551b60bfcd3106855defceb6df0 (diff) | |
Merge openssl-3.2.4ruby_3_3
The changes can be found at:
https://github.com/ruby/openssl/compare/v3.2.3...v3.2.4
Diffstat (limited to 'test/openssl/test_ssl.rb')
| -rw-r--r-- | test/openssl/test_ssl.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 07dc9a343c..240bb199ca 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -1634,7 +1634,9 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase } } start_server(ctx_proc: ctx_proc) do |port| - server_connect(port) { |ssl| + ctx = OpenSSL::SSL::SSLContext.new + ctx.ecdh_curves = "P-256" # Exclude RFC 7919 groups + server_connect(port, ctx) { |ssl| assert called, "dh callback should be called" assert_equal dh.to_der, ssl.tmp_key.to_der } @@ -1761,7 +1763,9 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase ctx.tmp_dh = dh } start_server(ctx_proc: ctx_proc) do |port| - server_connect(port) { |ssl| + ctx = OpenSSL::SSL::SSLContext.new + ctx.ecdh_curves = "P-256" # Exclude RFC 7919 groups + server_connect(port, ctx) { |ssl| assert_equal dh.to_der, ssl.tmp_key.to_der } end |
