27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
From 25a53e0c616369d27cc66bd9bba4b6c831a63c20 Mon Sep 17 00:00:00 2001
|
|
From: Jelle van der Waa <jelle@archlinux.org>
|
|
Date: Fri, 6 Dec 2024 19:10:48 +0100
|
|
Subject: [PATCH 2/2] test: adjust OpenSSL error code for 3.4.0
|
|
|
|
---
|
|
test/parallel/test-tls-psk-circuit.js | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/test/parallel/test-tls-psk-circuit.js b/test/parallel/test-tls-psk-circuit.js
|
|
index 2b49161df8..ee84b1d2f0 100644
|
|
--- a/test/parallel/test-tls-psk-circuit.js
|
|
+++ b/test/parallel/test-tls-psk-circuit.js
|
|
@@ -66,7 +66,8 @@ const expectedHandshakeErr = common.hasOpenSSL32 ?
|
|
'ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE' : 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE';
|
|
test({ psk: USERS.UserB, identity: 'UserC' }, {}, expectedHandshakeErr);
|
|
// Recognized user but incorrect secret should fail handshake
|
|
-const expectedIllegalParameterErr = common.hasOpenSSL32 ?
|
|
+const expectedIllegalParameterErr = common.hasOpenSSL34 ?
|
|
+ 'ERR_SSL_TLSV1_ALERT_DECRYPT_ERROR' : common.hasOpenSSL32 ?
|
|
'ERR_SSL_SSL/TLS_ALERT_ILLEGAL_PARAMETER' : 'ERR_SSL_SSLV3_ALERT_ILLEGAL_PARAMETER';
|
|
test({ psk: USERS.UserA, identity: 'UserB' }, {}, expectedIllegalParameterErr);
|
|
test({ psk: USERS.UserB, identity: 'UserB' });
|
|
--
|
|
2.47.1
|
|
|