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: hard-code tlsSocket.getCipher().version · nodejs/node@8a8ac8c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • tls.md
  • src
    • node_crypto.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/tls.md‎

Copy file name to clipboardExpand all lines: doc/api/tls.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,12 @@ Always returns `true`. This may be used to distinguish TLS sockets from regular
558558
added: v0.11.4
559559
-->
560560

561-
Returns an object representing the cipher name and the SSL/TLS protocol version
562-
that first defined the cipher.
561+
Returns an object representing the cipher name. The `version` key is a legacy
562+
field which always contains the value `'TLSv1/SSLv3'`.
563563

564564
For example: `{ name: 'AES256-SHA', version: 'TLSv1/SSLv3' }`
565565

566-
See `SSL_CIPHER_get_name()` and `SSL_CIPHER_get_version()` in
566+
See `SSL_CIPHER_get_name()` in
567567
https://www.openssl.org/docs/man1.0.2/ssl/SSL_CIPHER_get_name.html for more
568568
information.
569569

Collapse file

‎src/node_crypto.cc‎

Copy file name to clipboardExpand all lines: src/node_crypto.cc
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,9 +2265,8 @@ void SSLWrap<Base>::GetCurrentCipher(const FunctionCallbackInfo<Value>& args) {
22652265
Local<Object> info = Object::New(env->isolate());
22662266
const char* cipher_name = SSL_CIPHER_get_name(c);
22672267
info->Set(env->name_string(), OneByteString(args.GetIsolate(), cipher_name));
2268-
const char* cipher_version = SSL_CIPHER_get_version(c);
22692268
info->Set(env->version_string(),
2270-
OneByteString(args.GetIsolate(), cipher_version));
2269+
OneByteString(args.GetIsolate(), "TLSv1/SSLv3"));
22712270
args.GetReturnValue().Set(info);
22722271
}
22732272

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.