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

Commit

Permalink
test: fix test-crypto-stream
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
indutny authored and tjfontaine committed Oct 15, 2014
1 parent e0e38c2 commit 707cc25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/simple/test-crypto-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ var key = new Buffer('48fb56eb10ffeb13fc0ef551bbca3b1b', 'hex'),

cipher.pipe(decipher)
.on('error', common.mustCall(function end(err) {
// TypeError: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
assert(/:06065064:/.test(err));
assert(/:00000000:/.test(err));
}));

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

0 comments on commit 707cc25

Please sign in to comment.