Skip to content

Commit 35cbe1a

Browse files
tniessenRafaelGSS
authored andcommitted
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: #44455 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2dd88b8 commit 35cbe1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_cipher.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
10631063
ArrayBufferOrViewContents<unsigned char> oaep_label(
10641064
!args[offset + 3]->IsUndefined() ? args[offset + 3] : Local<Value>());
10651065
if (UNLIKELY(!oaep_label.CheckSizeInt32()))
1066-
return THROW_ERR_OUT_OF_RANGE(env, "oaep_label is too big");
1066+
return THROW_ERR_OUT_OF_RANGE(env, "oaepLabel is too big");
10671067

10681068
std::unique_ptr<BackingStore> out;
10691069
if (!Cipher<operation, EVP_PKEY_cipher_init, EVP_PKEY_cipher>(

0 commit comments

Comments
 (0)