Skip to content

Commit dfbd53f

Browse files
authored
crypto: fix RSA_PKCS1_PADDING error message
nodejs/node#55629
1 parent 97ca48d commit dfbd53f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

patches/node/fix_handle_boringssl_and_openssl_incompatibilities.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ index 245a43920c7baf000ba63192a84a4c3fd219be7d..56a554175b805c1703f13d62041f8c80
147147
# The location of simdutf - use the one from node's deps by default.
148148
node_simdutf_path = "$node_path/deps/simdutf"
149149
diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc
150-
index a81ab8e95f2fc23e1e315fb9c69364934377a0c1..dbe12ba2413ef29ff06a7e8abde50000eaf277e2 100644
150+
index c7588583530cf291946d01cec807390d987706cf..495fb92355a7eadc2f7ec885a3b529988bb3bd02 100644
151151
--- a/src/crypto/crypto_cipher.cc
152152
+++ b/src/crypto/crypto_cipher.cc
153153
@@ -1080,7 +1080,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
@@ -159,9 +159,9 @@ index a81ab8e95f2fc23e1e315fb9c69364934377a0c1..dbe12ba2413ef29ff06a7e8abde50000
159159
int rsa_pkcs1_implicit_rejection =
160160
EVP_PKEY_CTX_ctrl_str(ctx.get(), "rsa_pkcs1_implicit_rejection", "1");
161161
// From the doc -2 means that the option is not supported.
162-
@@ -1096,6 +1096,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
163-
"RSA_PKCS1_PADDING is no longer supported for private decryption,"
164-
" this can be reverted with --security-revert=CVE-2024-PEND");
162+
@@ -1095,6 +1095,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
163+
env,
164+
"RSA_PKCS1_PADDING is no longer supported for private decryption");
165165
}
166166
+#endif
167167
}

0 commit comments

Comments
 (0)