GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — crypto: rename X509_NAME_FLAGS · hernanc/node@19370b3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/crypto
    • crypto_common.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/crypto/crypto_common.cc‎

Copy file name to clipboardExpand all lines: src/crypto/crypto_common.cc
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ using v8::Undefined;
4141
using v8::Value;
4242

4343
namespace crypto {
44-
static constexpr int X509_NAME_FLAGS =
44+
static constexpr int kX509NameFlagsMultiline =
4545
ASN1_STRFLGS_ESC_2253 |
4646
ASN1_STRFLGS_ESC_CTRL |
4747
ASN1_STRFLGS_UTF8_CONVERT |
@@ -940,7 +940,11 @@ MaybeLocal<Value> GetIssuerString(
940940
const BIOPointer& bio,
941941
X509* cert) {
942942
X509_NAME* issuer_name = X509_get_issuer_name(cert);
943-
if (X509_NAME_print_ex(bio.get(), issuer_name, 0, X509_NAME_FLAGS) <= 0) {
943+
if (X509_NAME_print_ex(
944+
bio.get(),
945+
issuer_name,
946+
0,
947+
kX509NameFlagsMultiline) <= 0) {
944948
USE(BIO_reset(bio.get()));
945949
return Undefined(env->isolate());
946950
}
@@ -956,7 +960,7 @@ MaybeLocal<Value> GetSubject(
956960
bio.get(),
957961
X509_get_subject_name(cert),
958962
0,
959-
X509_NAME_FLAGS) <= 0) {
963+
kX509NameFlagsMultiline) <= 0) {
960964
USE(BIO_reset(bio.get()));
961965
return Undefined(env->isolate());
962966
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.