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 — Forward port 5.0: Avoid unnecessary SSL.getVersion() call and string … · netty/netty@76e5725

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • handler/src/main/java/io/netty/handler/ssl
    • ReferenceCountedOpenSslEngine.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java‎

Copy file name to clipboardExpand all lines: handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,13 @@ private String toJavaCipherSuite(String openSslCipherSuite) {
20812081
}
20822082

20832083
String version = SSL.getVersion(ssl);
2084+
return toJavaCipherSuite(openSslCipherSuite, version);
2085+
}
2086+
2087+
private String toJavaCipherSuite(String openSslCipherSuite, String version) {
2088+
if (openSslCipherSuite == null) {
2089+
return null;
2090+
}
20842091
String prefix = toJavaCipherSuitePrefix(version);
20852092
return CipherSuiteConverter.toJava(openSslCipherSuite, prefix);
20862093
}
@@ -2626,7 +2633,7 @@ public void handshakeFinished(byte[] id, String cipher, String protocol, byte[]
26262633
// did not set it earlier via setSessionDetails(...)
26272634
this.creationTime = lastAccessed = creationTime;
26282635
}
2629-
this.cipher = toJavaCipherSuite(cipher);
2636+
this.cipher = toJavaCipherSuite(cipher, protocol);
26302637
this.protocol = protocol;
26312638

26322639
if (clientMode) {

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.