From 615547493c725acf9f73049a54a90ca650126aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 31 Aug 2022 10:20:24 +0200 Subject: [PATCH] crypto: use actual option name in error message oaep_label is the name of the C++ variable. Use oaepLabel instead, which is the name of the documented option. PR-URL: https://github.com/nodejs/node/pull/44455 Reviewed-By: Filip Skokan Reviewed-By: theanarkh Reviewed-By: Luigi Pinca --- src/crypto/crypto_cipher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_cipher.cc b/src/crypto/crypto_cipher.cc index de24a6f547fc84..68e088d86a7599 100644 --- a/src/crypto/crypto_cipher.cc +++ b/src/crypto/crypto_cipher.cc @@ -1052,7 +1052,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo& args) { if (!args[offset + 3]->IsUndefined()) { oaep_label = ArrayBufferOrViewContents(args[offset + 3]); if (UNLIKELY(!oaep_label.CheckSizeInt32())) - return THROW_ERR_OUT_OF_RANGE(env, "oaep_label is too big"); + return THROW_ERR_OUT_OF_RANGE(env, "oaepLabel is too big"); } std::unique_ptr out;