Skip to content

Commit 114f004

Browse files
committed
test: skip test for dynamically linked OpenSSL
nodejs/node#52542
1 parent 7a7297b commit 114f004

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

patches/node/fix_crypto_tests_to_run_with_bssl.patch

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -570,17 +570,16 @@ index 438037acc867c2bd6e34ffdcd1e706f8d0ff6a57..65611c79d0e93bf7f91948b2a0105cdc
570570
};
571571

572572
const decryptError = common.hasOpenSSL3 ?
573-
@@ -221,8 +220,8 @@ function test_rsa(padding, encryptOaepHash, decryptOaepHash) {
574-
oaepHash: encryptOaepHash
573+
@@ -222,7 +222,8 @@ function test_rsa(padding, encryptOaepHash, decryptOaepHash) {
575574
}, bufferToEncrypt);
576575

577-
-
576+
578577
- if (padding === constants.RSA_PKCS1_PADDING) {
579578
+ // BoringSSL does not support RSA_PKCS1_PADDING.
580579
+ if (false) {
581-
assert.throws(() => {
582-
crypto.privateDecrypt({
583-
key: rsaKeyPem,
580+
// TODO(richardlau): see if it's possible to determine implicit rejection
581+
// support when dynamically linked against OpenSSL.
582+
if (!process.config.variables.node_shared_openssl) {
584583
@@ -415,7 +414,7 @@ assert.throws(() => {
585584
assert.strictEqual(verify2.verify(publicKey, signature, 'hex'), true);
586585
}

0 commit comments

Comments
 (0)