Blob Blame History Raw
# OpenSSL changed error message for bad passwords in newer version.
# Changing it back to match the OpenSSL version used in RHEL.

diff -up node-v8.11.4/test/parallel/test-tls-passphrase.js.orig node-v8.11.4/test/parallel/test-tls-passphrase.js
--- node-v8.11.4/test/parallel/test-tls-passphrase.js.orig	2018-09-07 12:35:43.576779151 +0200
+++ node-v8.11.4/test/parallel/test-tls-passphrase.js	2018-09-07 12:36:03.591781498 +0200
@@ -221,7 +221,7 @@ server.listen(0, common.mustCall(functio
   }, common.mustCall());
 })).unref();

-const errMessagePassword = /bad decrypt/;
+const errMessagePassword = /bad password read/;

 // Missing passphrase
 assert.throws(function() {