Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita075267

Browse files
richardlaumarco-ippolito
authored andcommitted
test: fix OpenSSL version checks
As per the original pull request that introduced the OpenSSL versioncheck in `parallel/test-crypto-dh`:```Error message change is test-only and uses the right error message forversions >=3.0.12 in 3.0.x and >= 3.1.4 in 3.1.x series.```Fix the check so that:- The older message is expected for OpenSSL 3.1.0.- The newer message is expected for OpenSSL from 3.1.4 (e.g. 3.2.x).Refs:#50395PR-URL:#53503Refs:#53382Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent2b70018 commita075267

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎test/parallel/test-crypto-dh.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ const crypto = require('crypto');
8686
}
8787

8888
{
89-
consthasOpenSSL3WithNewErrorMessage=(common.hasOpenSSL(3,0,12)&&!common.hasOpenSSL(3,1,1))||
90-
(common.hasOpenSSL(3,1,4)&&!common.hasOpenSSL(3,2,1));
89+
// Error message was changed in OpenSSL 3.0.x from 3.0.12, and 3.1.x from 3.1.4.
90+
consthasOpenSSL3WithNewErrorMessage=(common.hasOpenSSL(3,0,12)&&!common.hasOpenSSL(3,1,0))||
91+
(common.hasOpenSSL(3,1,4));
9192
assert.throws(()=>{
9293
dh3.computeSecret('');
9394
},{message:common.hasOpenSSL3&&!hasOpenSSL3WithNewErrorMessage ?

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp