Skip to content

Commit bd2e521

Browse files
danbevMylesBorins
authored andcommitted
src: rename return var in VerifySpkac functions
This commit renames the verification result variable, that is currently named i, to verify_result. PR-URL: #20218 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a4dae6c commit bd2e521

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/node_crypto.cc

+7-7
Original file line numberDiff line numberDiff line change
@@ -5148,7 +5148,7 @@ void GetCurves(const FunctionCallbackInfo<Value>& args) {
51485148

51495149

51505150
bool VerifySpkac(const char* data, unsigned int len) {
5151-
bool i = false;
5151+
bool verify_result = false;
51525152
EVP_PKEY* pkey = nullptr;
51535153
NETSCAPE_SPKI* spki = nullptr;
51545154

@@ -5160,7 +5160,7 @@ bool VerifySpkac(const char* data, unsigned int len) {
51605160
if (pkey == nullptr)
51615161
goto exit;
51625162

5163-
i = NETSCAPE_SPKI_verify(spki, pkey) > 0;
5163+
verify_result = NETSCAPE_SPKI_verify(spki, pkey) > 0;
51645164

51655165
exit:
51665166
if (pkey != nullptr)
@@ -5169,23 +5169,23 @@ bool VerifySpkac(const char* data, unsigned int len) {
51695169
if (spki != nullptr)
51705170
NETSCAPE_SPKI_free(spki);
51715171

5172-
return i;
5172+
return verify_result;
51735173
}
51745174

51755175

51765176
void VerifySpkac(const FunctionCallbackInfo<Value>& args) {
5177-
bool i = false;
5177+
bool verify_result = false;
51785178

51795179
size_t length = Buffer::Length(args[0]);
51805180
if (length == 0)
5181-
return args.GetReturnValue().Set(i);
5181+
return args.GetReturnValue().Set(verify_result);
51825182

51835183
char* data = Buffer::Data(args[0]);
51845184
CHECK_NE(data, nullptr);
51855185

5186-
i = VerifySpkac(data, length);
5186+
verify_result = VerifySpkac(data, length);
51875187

5188-
args.GetReturnValue().Set(i);
5188+
args.GetReturnValue().Set(verify_result);
51895189
}
51905190

51915191

0 commit comments

Comments
 (0)