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: remove unnecessary calls to TLS_method() · nodejs/node@a51d839

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
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,14 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
407407
} else if (strcmp(*sslmethod, "SSLv3_client_method") == 0) {
408408
return env->ThrowError("SSLv3 methods disabled");
409409
} else if (strcmp(*sslmethod, "SSLv23_method") == 0) {
410-
method = TLS_method();
410+
// noop
411411
} else if (strcmp(*sslmethod, "SSLv23_server_method") == 0) {
412412
method = TLS_server_method();
413413
} else if (strcmp(*sslmethod, "SSLv23_client_method") == 0) {
414414
method = TLS_client_method();
415415
} else if (strcmp(*sslmethod, "TLSv1_method") == 0) {
416416
min_version = TLS1_VERSION;
417417
max_version = TLS1_VERSION;
418-
method = TLS_method();
419418
} else if (strcmp(*sslmethod, "TLSv1_server_method") == 0) {
420419
min_version = TLS1_VERSION;
421420
max_version = TLS1_VERSION;
@@ -427,7 +426,6 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
427426
} else if (strcmp(*sslmethod, "TLSv1_1_method") == 0) {
428427
min_version = TLS1_1_VERSION;
429428
max_version = TLS1_1_VERSION;
430-
method = TLS_method();
431429
} else if (strcmp(*sslmethod, "TLSv1_1_server_method") == 0) {
432430
min_version = TLS1_1_VERSION;
433431
max_version = TLS1_1_VERSION;
@@ -439,7 +437,6 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
439437
} else if (strcmp(*sslmethod, "TLSv1_2_method") == 0) {
440438
min_version = TLS1_2_VERSION;
441439
max_version = TLS1_2_VERSION;
442-
method = TLS_method();
443440
} else if (strcmp(*sslmethod, "TLSv1_2_server_method") == 0) {
444441
min_version = TLS1_2_VERSION;
445442
max_version = TLS1_2_VERSION;

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.