Skip to content

Commit 52dbbe7

Browse files
committed
test: crypto-rsa-dsa testing for dynamic openssl
nodejs/node#52781
1 parent 98155c9 commit 52dbbe7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

patches/node/fix_crypto_tests_to_run_with_bssl.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ index 1785f5eef3d202976666081d09850ed744d83446..e88227a215ba4f7fa196f7642ae694a5
549549
});
550550

551551
diff --git a/test/parallel/test-crypto-rsa-dsa.js b/test/parallel/test-crypto-rsa-dsa.js
552-
index ecda345989789d0745b631385e7411305c1c6375..542a0a16f3f2eba4efd31e807a3bc34b6752d798 100644
552+
index 5f4fafdfffbf726b7cb39c472baa3df25c9794cf..e1137cb89e6dd1e96d7320d09fcdabe2eb0b77e2 100644
553553
--- a/test/parallel/test-crypto-rsa-dsa.js
554554
+++ b/test/parallel/test-crypto-rsa-dsa.js
555555
@@ -28,12 +28,11 @@ const dsaPkcs8KeyPem = fixtures.readKey('dsa_private_pkcs8.pem');
@@ -577,9 +577,9 @@ index ecda345989789d0745b631385e7411305c1c6375..542a0a16f3f2eba4efd31e807a3bc34b
577577
- if (padding === constants.RSA_PKCS1_PADDING) {
578578
+ // BoringSSL does not support RSA_PKCS1_PADDING.
579579
+ if (false) {
580-
// TODO(richardlau): see if it's possible to determine implicit rejection
581-
// support when dynamically linked against OpenSSL.
582580
if (!process.config.variables.node_shared_openssl) {
581+
assert.throws(() => {
582+
crypto.privateDecrypt({
583583
@@ -419,7 +419,7 @@ assert.throws(() => {
584584
assert.strictEqual(verify2.verify(publicKey, signature, 'hex'), true);
585585
}

0 commit comments

Comments
 (0)