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 — test: account for OpenSSL 4.x changes · nodejs/node@47437d9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • addons
      • openssl-client-cert-engine
        • test.js
      • openssl-key-engine
        • test.js
    • parallel
      • test-x509-escaping.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/addons/openssl-client-cert-engine/test.js‎

Copy file name to clipboardExpand all lines: test/addons/openssl-client-cert-engine/test.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const fixture = require('../../common/fixtures');
55
if (!common.hasCrypto)
66
common.skip('missing crypto');
77

8+
const { hasOpenSSL } = require('../../common/crypto');
9+
10+
if (hasOpenSSL(4))
11+
common.skip('OpenSSL 4 does not support engines');
12+
813
const fs = require('fs');
914
const path = require('path');
1015

Collapse file

‎test/addons/openssl-key-engine/test.js‎

Copy file name to clipboardExpand all lines: test/addons/openssl-key-engine/test.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const fixture = require('../../common/fixtures');
55
if (!common.hasCrypto)
66
common.skip('missing crypto');
77

8+
const { hasOpenSSL } = require('../../common/crypto');
9+
10+
if (hasOpenSSL(4))
11+
common.skip('OpenSSL 4 does not support engines');
12+
813
const fs = require('fs');
914
const path = require('path');
1015

Collapse file

‎test/parallel/test-x509-escaping.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-x509-escaping.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ const { hasOpenSSL, isBoringSSL } = require('../common/crypto');
472472
})).unref();
473473
}
474474

475-
// The subject MUST NOT be ignored if no dNSName subject alternative name
475+
// TLS MUST NOT ignore the subject if no dNSName subject alternative name
476476
// exists, even if other subject alternative names exist.
477477
{
478478
const key = fixtures.readKey('irrelevant_san_correct_subject-key.pem');
@@ -485,13 +485,12 @@ const { hasOpenSSL, isBoringSSL } = require('../common/crypto');
485485
assert.strictEqual(certX509.subjectAltName, 'IP Address:1.2.3.4');
486486

487487
// The newer X509Certificate API allows customizing this behavior:
488-
const cnFallback = isBoringSSL ? undefined :
489-
servername;
488+
const cnFallback = isBoringSSL || hasOpenSSL(4, 1) ? undefined : servername;
490489
assert.strictEqual(certX509.checkHost(servername), cnFallback);
491490
assert.strictEqual(certX509.checkHost(servername, { subject: 'default' }),
492491
cnFallback);
493492
assert.strictEqual(certX509.checkHost(servername, { subject: 'always' }),
494-
cnFallback);
493+
isBoringSSL ? undefined : servername);
495494
assert.strictEqual(certX509.checkHost(servername, { subject: 'never' }),
496495
undefined);
497496

0 commit comments

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