Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f134c9d

Browse filesBrowse files
danbevaddaleax
authored andcommitted
src: correct indentation for X509ToObject
The indentation in one of the if statements blocks is four spaces instead of two. This commit changes the indentation to two spaces. PR-URL: #13543 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 61c7308 commit f134c9d
Copy full SHA for f134c9d

File tree

Expand file treeCollapse file tree

1 file changed

+20
-20
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+20
-20
lines changed
Open diff view settings
Collapse file

‎src/node_crypto.cc‎

Copy file name to clipboardExpand all lines: src/node_crypto.cc
+20-20Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,26 +1581,26 @@ static Local<Object> X509ToObject(Environment* env, X509* cert) {
15811581
rsa = EVP_PKEY_get1_RSA(pkey);
15821582

15831583
if (rsa != nullptr) {
1584-
BN_print(bio, rsa->n);
1585-
BIO_get_mem_ptr(bio, &mem);
1586-
info->Set(env->modulus_string(),
1587-
String::NewFromUtf8(env->isolate(), mem->data,
1588-
String::kNormalString, mem->length));
1589-
(void) BIO_reset(bio);
1590-
1591-
uint64_t exponent_word = static_cast<uint64_t>(BN_get_word(rsa->e));
1592-
uint32_t lo = static_cast<uint32_t>(exponent_word);
1593-
uint32_t hi = static_cast<uint32_t>(exponent_word >> 32);
1594-
if (hi == 0) {
1595-
BIO_printf(bio, "0x%x", lo);
1596-
} else {
1597-
BIO_printf(bio, "0x%x%08x", hi, lo);
1598-
}
1599-
BIO_get_mem_ptr(bio, &mem);
1600-
info->Set(env->exponent_string(),
1601-
String::NewFromUtf8(env->isolate(), mem->data,
1602-
String::kNormalString, mem->length));
1603-
(void) BIO_reset(bio);
1584+
BN_print(bio, rsa->n);
1585+
BIO_get_mem_ptr(bio, &mem);
1586+
info->Set(env->modulus_string(),
1587+
String::NewFromUtf8(env->isolate(), mem->data,
1588+
String::kNormalString, mem->length));
1589+
(void) BIO_reset(bio);
1590+
1591+
uint64_t exponent_word = static_cast<uint64_t>(BN_get_word(rsa->e));
1592+
uint32_t lo = static_cast<uint32_t>(exponent_word);
1593+
uint32_t hi = static_cast<uint32_t>(exponent_word >> 32);
1594+
if (hi == 0) {
1595+
BIO_printf(bio, "0x%x", lo);
1596+
} else {
1597+
BIO_printf(bio, "0x%x%08x", hi, lo);
1598+
}
1599+
BIO_get_mem_ptr(bio, &mem);
1600+
info->Set(env->exponent_string(),
1601+
String::NewFromUtf8(env->isolate(), mem->data,
1602+
String::kNormalString, mem->length));
1603+
(void) BIO_reset(bio);
16041604
}
16051605

16061606
if (pkey != nullptr) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.