From 5cdeb7670834f3fb1316289f23916200ef3ceae8 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 22 Mar 2021 12:02:55 +0100 Subject: [PATCH] test: add OpenSSL 3.0 checks to tls-passphrase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/37860 Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso Reviewed-By: Richard Lau Reviewed-By: Beth Griggs Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- test/parallel/test-tls-passphrase.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-passphrase.js b/test/parallel/test-tls-passphrase.js index 610bbefe46c9c0..c0d0051ff8bbc2 100644 --- a/test/parallel/test-tls-passphrase.js +++ b/test/parallel/test-tls-passphrase.js @@ -224,7 +224,7 @@ server.listen(0, common.mustCall(function() { })).unref(); const errMessagePassword = common.hasOpenSSL3 ? - /processing error/ : /bad decrypt/; + /Error: PEM_read_bio_PrivateKey/ : /bad decrypt/; // Missing passphrase assert.throws(function() { @@ -254,7 +254,8 @@ assert.throws(function() { }); }, errMessagePassword); -const errMessageDecrypt = /bad decrypt/; +const errMessageDecrypt = common.hasOpenSSL3 ? + /Error: PEM_read_bio_PrivateKey/ : /bad decrypt/; // Invalid passphrase assert.throws(function() {