mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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: https://github.com/nodejs/node/pull/54612 Refs: https://github.com/nodejs/node/pull/53384 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
parent
d96739cf62
commit
2bfc9e467c
@ -63,10 +63,12 @@ test('RSA-PSS+SHA256:RSA-PSS+SHA512:ECDSA+SHA256',
|
||||
['RSA-PSS+SHA256', 'ECDSA+SHA256']);
|
||||
|
||||
// Do not have shared sigalgs.
|
||||
const handshakeErr = common.hasOpenSSL(3, 2) ?
|
||||
'ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE' : 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE';
|
||||
test('RSA-PSS+SHA384', 'ECDSA+SHA256',
|
||||
undefined, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE',
|
||||
undefined, handshakeErr,
|
||||
'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITHMS');
|
||||
|
||||
test('RSA-PSS+SHA384:ECDSA+SHA256', 'ECDSA+SHA384:RSA-PSS+SHA256',
|
||||
undefined, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE',
|
||||
undefined, handshakeErr,
|
||||
'ERR_SSL_NO_SHARED_SIGNATURE_ALGORITHMS');
|
||||
|
Loading…
Reference in New Issue
Block a user