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 — lib: suppress crypto related env vars in help msg · nodejs/node@3df8633

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • print_help.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/print_help.js‎

Copy file name to clipboardExpand all lines: lib/internal/print_help.js
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const { types } = internalBinding('options');
4+
const hasCrypto = Boolean(process.versions.openssl);
45

56
const typeLookup = [];
67
for (const key of Object.keys(types))
@@ -33,11 +34,6 @@ const envVars = new Map([
3334
'certificate validation' }],
3435
['NODE_V8_COVERAGE', { helpText: 'directory to output v8 coverage JSON ' +
3536
'to' }],
36-
['OPENSSL_CONF', { helpText: 'load OpenSSL configuration from file' }],
37-
['SSL_CERT_DIR', { helpText: 'sets OpenSSL\'s directory of trusted ' +
38-
'certificates when used in conjunction with --use-openssl-ca' }],
39-
['SSL_CERT_FILE', { helpText: 'sets OpenSSL\'s trusted certificate file ' +
40-
'when used in conjunction with --use-openssl-ca' }],
4137
['UV_THREADPOOL_SIZE', { helpText: 'sets the number of threads used in ' +
4238
'libuv\'s threadpool' }]
4339
].concat(hasIntl ? [
@@ -46,6 +42,12 @@ const envVars = new Map([
4642
] : []).concat(hasNodeOptions ? [
4743
['NODE_OPTIONS', { helpText: 'set CLI options in the environment via a ' +
4844
'space-separated list' }]
45+
] : []).concat(hasCrypto ? [
46+
['OPENSSL_CONF', { helpText: 'load OpenSSL configuration from file' }],
47+
['SSL_CERT_DIR', { helpText: 'sets OpenSSL\'s directory of trusted ' +
48+
'certificates when used in conjunction with --use-openssl-ca' }],
49+
['SSL_CERT_FILE', { helpText: 'sets OpenSSL\'s trusted certificate file ' +
50+
'when used in conjunction with --use-openssl-ca' }],
4951
] : []));
5052

5153

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.