Skip to content

Commit 5316314

Browse files
committed
test: update TLS test for OpenSSL 3.2
Update `parallel/test-tls-set-sigalgs` to account for error code changes in OpenSSL 3.2 and later. PR-URL: #54612 Refs: #53384 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent a1f0c87 commit 5316314

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/parallel/test-tls-set-sigalgs.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ test('RSA-PSS+SHA256:RSA-PSS+SHA512:ECDSA+SHA256',
6363
['RSA-PSS+SHA256', 'ECDSA+SHA256']);
6464

6565
// Do not have shared sigalgs.
66+
const handshakeErr = common.hasOpenSSL(3, 2) ?
67+
'ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE' : 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE';
6668
test('RSA-PSS+SHA384', 'ECDSA+SHA256',
67-
undefined, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE',
69+
undefined, handshakeErr,
6870
'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITHMS');
6971

7072
test('RSA-PSS+SHA384:ECDSA+SHA256', 'ECDSA+SHA384:RSA-PSS+SHA256',
71-
undefined, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE',
73+
undefined, handshakeErr,
7274
'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITHMS');

0 commit comments

Comments
 (0)