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 <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • 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.