Skip to content

Commit

Permalink
test: add OpenSSL 3.0 checks to tls-passphrase
Browse files Browse the repository at this point in the history
PR-URL: #37860
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
danbev authored and ruyadorno committed Mar 30, 2021
1 parent 33c35a3 commit 5cdeb76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-tls-passphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ server.listen(0, common.mustCall(function() {
})).unref();

const errMessagePassword = common.hasOpenSSL3 ?
/processing error/ : /bad decrypt/;
/Error: PEM_read_bio_PrivateKey/ : /bad decrypt/;

// Missing passphrase
assert.throws(function() {
Expand Down Expand Up @@ -254,7 +254,8 @@ assert.throws(function() {
});
}, errMessagePassword);

const errMessageDecrypt = /bad decrypt/;
const errMessageDecrypt = common.hasOpenSSL3 ?
/Error: PEM_read_bio_PrivateKey/ : /bad decrypt/;

// Invalid passphrase
assert.throws(function() {
Expand Down

0 comments on commit 5cdeb76

Please sign in to comment.