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: fix setEngine() when OPENSSL_NO_ENGINE set · nodejs/node@15c2de4

File tree

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

‎lib/internal/crypto/util.js‎

Copy file name to clipboardExpand all lines: lib/internal/crypto/util.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const normalizeHashName = require('internal/crypto/hashnames');
4444
const {
4545
hideStackFrames,
4646
codes: {
47+
ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED,
4748
ERR_CRYPTO_ENGINE_UNKNOWN,
4849
ERR_INVALID_ARG_TYPE,
4950
ERR_INVALID_ARG_VALUE,
@@ -105,6 +106,8 @@ function setEngine(id, flags) {
105106
if (flags === 0)
106107
flags = ENGINE_METHOD_ALL;
107108

109+
if (typeof _setEngine !== 'function')
110+
throw new ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED();
108111
if (!_setEngine(id, flags))
109112
throw new ERR_CRYPTO_ENGINE_UNKNOWN(id);
110113
}

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.