diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-10-15 20:50:15 +0400 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-10-15 14:07:00 -0700 |
commit | 707cc25011d142fe4ade14ce2aa083a96ef15bcb (patch) | |
tree | 4a642a0863871b9118a5558f2aafa4d5c59d6da9 | |
parent | e0e38c2f470d1d82579aee28638685be39913e36 (diff) | |
download | node-707cc25011d142fe4ade14ce2aa083a96ef15bcb.tar.gz |
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.
-rw-r--r-- | test/simple/test-crypto-stream.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/simple/test-crypto-stream.js b/test/simple/test-crypto-stream.js index 72c9776d0..402761e1b 100644 --- a/test/simple/test-crypto-stream.js +++ b/test/simple/test-crypto-stream.js @@ -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. |