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

Appearance settings

Commit 4aa2610

Browse filesBrowse files
danbevBethGriggs
authored andcommitted
test: update OpenSSL3 error messages for 3.0.0+quic
This commit updates two OpenSSL 3.0.0 error messages required for OpenSSL 3.0.0+quic. PR-URL: #40093 Refs: nodejs/build#2759 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 92f182b commit 4aa2610
Copy full SHA for 4aa2610

File tree

Expand file treeCollapse file tree

2 files changed

+7
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-4
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-crypto-key-objects.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-key-objects.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
519519
// Reading an encrypted key without a passphrase should fail.
520520
assert.throws(() => createPrivateKey(privateDsa), common.hasOpenSSL3 ? {
521521
name: 'Error',
522-
message: 'error:1E08010C:DECODER routines::unsupported',
522+
message: 'error:07880109:common libcrypto routines::interrupted or ' +
523+
'cancelled',
523524
} : {
524525
name: 'TypeError',
525526
code: 'ERR_MISSING_PASSPHRASE',
@@ -545,7 +546,7 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem',
545546
passphrase: Buffer.alloc(1024, 'a')
546547
}), {
547548
message: common.hasOpenSSL3 ?
548-
'error:1E08010C:DECODER routines::unsupported' :
549+
'error:07880109:common libcrypto routines::interrupted or cancelled' :
549550
/bad decrypt/
550551
});
551552

Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-keygen.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
637637
// Since the private key is encrypted, signing shouldn't work anymore.
638638
assert.throws(() => testSignVerify(publicKey, privateKey),
639639
common.hasOpenSSL3 ? {
640-
message: 'error:1E08010C:DECODER routines::unsupported'
640+
message: 'error:07880109:common libcrypto ' +
641+
'routines::interrupted or cancelled'
641642
} : {
642643
name: 'TypeError',
643644
code: 'ERR_MISSING_PASSPHRASE',
@@ -674,7 +675,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
674675
// Since the private key is encrypted, signing shouldn't work anymore.
675676
assert.throws(() => testSignVerify(publicKey, privateKey),
676677
common.hasOpenSSL3 ? {
677-
message: 'error:1E08010C:DECODER routines::unsupported'
678+
message: 'error:07880109:common libcrypto ' +
679+
'routines::interrupted or cancelled'
678680
} : {
679681
name: 'TypeError',
680682
code: 'ERR_MISSING_PASSPHRASE',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.