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 — tls: re-define max supported version as 1.2 · nodejs/node@77cf877

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_crypto.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_crypto.cc‎

Copy file name to clipboardExpand all lines: src/node_crypto.cc
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,12 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
484484
SSL_SESS_CACHE_NO_AUTO_CLEAR);
485485

486486
SSL_CTX_set_min_proto_version(sc->ctx_.get(), min_version);
487+
488+
if (max_version == 0) {
489+
// Selecting some secureProtocol methods allows the TLS version to be "any
490+
// supported", but we don't support TLSv1.3, even if OpenSSL does.
491+
max_version = TLS1_2_VERSION;
492+
}
487493
SSL_CTX_set_max_proto_version(sc->ctx_.get(), max_version);
488494
// OpenSSL 1.1.0 changed the ticket key size, but the OpenSSL 1.0.x size was
489495
// exposed in the public API. To retain compatibility, install a callback

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.