mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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 <panva.ip@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
6be761e8a9
commit
7100baee40
1 file changed
+1
-1
@@ -1052,7 +1052,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
|
||||
if (!args[offset + 3]->IsUndefined()) {
|
||||
oaep_label = ArrayBufferOrViewContents<unsigned char>(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<BackingStore> out;
|
||||
|
||||
Reference in new issue
Block a user