| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4bc8f75 commit f9b63b8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1325,6 +1325,8 @@ if (!common.hasOpenSSL3) { | |||
| 1325 | 1325 | if (!getCurves().includes(namedCurve)) | |
| 1326 | 1326 | continue; | |
| 1327 | 1327 | ||
| 1328 | + const expectedErrorCode = | ||
| 1329 | + common.hasOpenSSL3 ? 'ERR_OSSL_MISSING_OID' : 'ERR_OSSL_EC_MISSING_OID'; | ||
| 1328 | 1330 | const params = { | |
| 1329 | 1331 | namedCurve, | |
| 1330 | 1332 | publicKeyEncoding: { | |
@@ -1336,11 +1338,11 @@ if (!common.hasOpenSSL3) { | |||
| 1336 | 1338 | assert.throws(() => { | |
| 1337 | 1339 | generateKeyPairSync('ec', params); | |
| 1338 | 1340 | }, { | |
| 1339 | - code: 'ERR_OSSL_EC_MISSING_OID' | ||
| 1341 | + code: expectedErrorCode | ||
| 1340 | 1342 | }); | |
| 1341 | 1343 | ||
| 1342 | 1344 | generateKeyPair('ec', params, common.mustCall((err) => { | |
| 1343 | - assert.strictEqual(err.code, 'ERR_OSSL_EC_MISSING_OID'); | ||
| 1345 | + assert.strictEqual(err.code, expectedErrorCode); | ||
| 1344 | 1346 | })); | |
| 1345 | 1347 | } | |
| 1346 | 1348 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments