Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 707cc25

Browse files
indutnytjfontaine
authored andcommitted
test: fix test-crypto-stream
Because of constant-timeness change made in openssl-1.0.1j the error is no longer returned from EVP_DecryptFinal_ex. Now it just return 0, and thus the error message does not contain proper error code. Adapt to this change, there is not much that we could do about it.
1 parent e0e38c2 commit 707cc25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/simple/test-crypto-stream.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ var key = new Buffer('48fb56eb10ffeb13fc0ef551bbca3b1b', 'hex'),
7070

7171
cipher.pipe(decipher)
7272
.on('error', common.mustCall(function end(err) {
73-
// TypeError: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
74-
assert(/:06065064:/.test(err));
73+
assert(/:00000000:/.test(err));
7574
}));
7675

7776
cipher.end('Papaya!'); // Should not cause an unhandled exception.

0 commit comments

Comments
 (0)