On 06/04/15 16:34, Jérémy Lal wrote: > Hello, > [...] Hi, consider this patch. The actual error string is:
TypeError: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt In the patch I hook into human readable part, not into the hexadecimal error code. I don't know how the test passed before! The test expected 00000000 error code... Tomasz
From d153634ea8daddf0f7b1074202357a0f3c8e309a Mon Sep 17 00:00:00 2001 From: Tomasz Buchert <tom...@debian.org> Date: Mon, 6 Apr 2015 17:20:46 +0200 Subject: [PATCH] Fix crypto-stream test --- test/simple/test-crypto-stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-crypto-stream.js b/test/simple/test-crypto-stream.js index 402761e..e434aad 100644 --- a/test/simple/test-crypto-stream.js +++ b/test/simple/test-crypto-stream.js @@ -70,7 +70,7 @@ var key = new Buffer('48fb56eb10ffeb13fc0ef551bbca3b1b', 'hex'), cipher.pipe(decipher) .on('error', common.mustCall(function end(err) { - assert(/:00000000:/.test(err)); + assert(/EVP_DecryptFinal_ex:bad decrypt/.test(err)); })); cipher.end('Papaya!'); // Should not cause an unhandled exception. -- 2.1.4
signature.asc
Description: Digital signature