| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2b70018 commit a075267
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -86,8 +86,9 @@ const crypto = require('crypto'); | |||
| 86 | 86 | } | |
| 87 | 87 | ||
| 88 | 88 | { | |
| 89 | - const hasOpenSSL3WithNewErrorMessage = (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 | + const hasOpenSSL3WithNewErrorMessage = (common.hasOpenSSL(3, 0, 12) && !common.hasOpenSSL(3, 1, 0)) || | ||
| 91 | + (common.hasOpenSSL(3, 1, 4)); | ||
| 91 | 92 | assert.throws(() => { | |
| 92 | 93 | dh3.computeSecret(''); | |
| 93 | 94 | }, { message: common.hasOpenSSL3 && !hasOpenSSL3WithNewErrorMessage ? | |
| Back | FazBrowse Home | New Git URL |
0 commit comments