File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1325,6 +1325,8 @@ if (!common.hasOpenSSL3) {
13251325 if ( ! getCurves ( ) . includes ( namedCurve ) )
13261326 continue ;
13271327
1328+ const expectedErrorCode = common . hasOpenSSL3 ? 'ERR_OSSL_MISSING_OID' :
1329+ 'ERR_OSSL_EC_MISSING_OID' ;
13281330 const params = {
13291331 namedCurve,
13301332 publicKeyEncoding : {
@@ -1336,11 +1338,11 @@ if (!common.hasOpenSSL3) {
13361338 assert . throws ( ( ) => {
13371339 generateKeyPairSync ( 'ec' , params ) ;
13381340 } , {
1339- code : 'ERR_OSSL_EC_MISSING_OID'
1341+ code : expectedErrorCode
13401342 } ) ;
13411343
13421344 generateKeyPair ( 'ec' , params , common . mustCall ( ( err ) => {
1343- assert . strictEqual ( err . code , 'ERR_OSSL_EC_MISSING_OID' ) ;
1345+ assert . strictEqual ( err . code , expectedErrorCode ) ;
13441346 } ) ) ;
13451347 }
13461348 }
You can’t perform that action at this time.
0 commit comments